equal
deleted
inserted
replaced
124 * @param d The DiagDirection |
124 * @param d The DiagDirection |
125 * @return The result RoadBits which the selected road-part set |
125 * @return The result RoadBits which the selected road-part set |
126 */ |
126 */ |
127 static inline RoadBits DiagDirToRoadBits(DiagDirection d) |
127 static inline RoadBits DiagDirToRoadBits(DiagDirection d) |
128 { |
128 { |
129 return (RoadBits)(1U << (3 ^ d)); |
129 return (RoadBits)(ROAD_NW << (3 ^ d)); |
130 } |
130 } |
131 |
131 |
132 /** |
132 /** |
133 * Checks whether the trackdir means that we are reversing. |
133 * Checks whether the trackdir means that we are reversing. |
134 * @param dir the trackdir to check |
134 * @param dir the trackdir to check |