Codechange: Remove TownLayoutByte type
This commit is contained in:
@@ -76,10 +76,8 @@ enum Ratings {
|
||||
RATING_BRIBE_DOWN_TO = -50 // XXX SHOULD BE SOMETHING LOWER?
|
||||
};
|
||||
|
||||
/**
|
||||
* Town Layouts
|
||||
*/
|
||||
enum TownLayout {
|
||||
/** Town Layouts. It needs to be 8bits, because we save and load it as such */
|
||||
enum TownLayout : byte {
|
||||
TL_BEGIN = 0,
|
||||
TL_ORIGINAL = 0, ///< Original algorithm (min. 1 distance between roads)
|
||||
TL_BETTER_ROADS, ///< Extended original algorithm (min. 2 distance between roads)
|
||||
@@ -91,8 +89,6 @@ enum TownLayout {
|
||||
NUM_TLS, ///< Number of town layouts
|
||||
};
|
||||
template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_BEGIN, NUM_TLS, NUM_TLS, 3> {};
|
||||
/** It needs to be 8bits, because we save and load it as such */
|
||||
typedef SimpleTinyEnumT<TownLayout, byte> TownLayoutByte; // typedefing-enumification of TownLayout
|
||||
|
||||
/** Town founding setting values. It needs to be 8bits, because we save and load it as such */
|
||||
enum TownFounding : byte {
|
||||
|
Reference in New Issue
Block a user