mirror of https://github.com/OpenTTD/OpenTTD
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
parent
74bf87dd82
commit
41bbc5c990
|
@ -212,6 +212,11 @@ enum TownLayout {
|
||||||
NUM_TLS, ///< Number of town layouts
|
NUM_TLS, ///< Number of town layouts
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* It needs to be 8bits, because we save and load it as such */
|
||||||
|
/** Define basic enum properties */
|
||||||
|
template <> struct EnumPropsT<TownLayout> : MakeEnumPropsT<TownLayout, byte, TL_NO_ROADS, NUM_TLS, NUM_TLS> {};
|
||||||
|
typedef TinyEnumT<TownLayout> TownLayoutByte; //typedefing-enumification of TownLayout
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
NUM_PRICES = 49,
|
NUM_PRICES = 49,
|
||||||
};
|
};
|
||||||
|
|
|
@ -232,7 +232,7 @@ struct Patches {
|
||||||
|
|
||||||
bool pause_on_newgame; ///< Whether to start new games paused or not.
|
bool pause_on_newgame; ///< Whether to start new games paused or not.
|
||||||
|
|
||||||
TownLayout town_layout; ///< Select town layout
|
TownLayoutByte town_layout; ///< Select town layout
|
||||||
};
|
};
|
||||||
|
|
||||||
VARDEF Patches _patches;
|
VARDEF Patches _patches;
|
||||||
|
|
Loading…
Reference in New Issue