mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-22 21:19:27 +01:00
(svn r19683) -Fix (r19654): towns with 3x3 and 2x2 road layouts couldn't expand
This commit is contained in:
parent
3c8c792e7e
commit
dba2a57b0d
@ -66,9 +66,11 @@ enum RoadBits {
|
|||||||
ROAD_S = ROAD_SE | ROAD_SW, ///< Road at the two southern edges
|
ROAD_S = ROAD_SE | ROAD_SW, ///< Road at the two southern edges
|
||||||
ROAD_W = ROAD_NW | ROAD_SW, ///< Road at the two western edges
|
ROAD_W = ROAD_NW | ROAD_SW, ///< Road at the two western edges
|
||||||
|
|
||||||
ROAD_ALL = ROAD_X | ROAD_Y ///< Full 4-way crossing
|
ROAD_ALL = ROAD_X | ROAD_Y, ///< Full 4-way crossing
|
||||||
|
|
||||||
|
ROAD_END = ROAD_ALL + 1 ///< Out-of-range roadbits, used for iterations
|
||||||
};
|
};
|
||||||
DECLARE_ENUM_AS_BIT_SET(RoadBits)
|
DECLARE_ENUM_AS_BIT_SET(RoadBits)
|
||||||
template <> struct EnumPropsT<RoadBits> : MakeEnumPropsT<RoadBits, byte, ROAD_NONE, ROAD_ALL, ROAD_NONE, 4> {};
|
template <> struct EnumPropsT<RoadBits> : MakeEnumPropsT<RoadBits, byte, ROAD_NONE, ROAD_END, ROAD_NONE, 4> {};
|
||||||
|
|
||||||
#endif /* ROAD_TYPE_H */
|
#endif /* ROAD_TYPE_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user