src/road.h
changeset 8062 9eb6efa04d44
parent 7891 5aac5be5fc2c
child 8137 67a9579abd74
equal deleted inserted replaced
8061:b6d9a2e58173 8062:9eb6efa04d44
   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