equal
deleted
inserted
replaced
99 } |
99 } |
100 return r; |
100 return r; |
101 } |
101 } |
102 |
102 |
103 /** |
103 /** |
|
104 * Check if we've got a straight road |
|
105 * |
|
106 * @param r The given RoadBits |
|
107 * @return true if we've got a straight road |
|
108 */ |
|
109 static inline bool IsStraightRoad(RoadBits r) |
|
110 { |
|
111 return (r == ROAD_X || r == ROAD_Y); |
|
112 } |
|
113 |
|
114 /** |
104 * Create the road-part which belongs to the given DiagDirection |
115 * Create the road-part which belongs to the given DiagDirection |
105 * |
116 * |
106 * This function returns a RoadBits value which belongs to |
117 * This function returns a RoadBits value which belongs to |
107 * the given DiagDirection. |
118 * the given DiagDirection. |
108 * |
119 * |