Changeset - r6577:a506578448c9
[Not reviewed]
master
0 2 0
glx - 17 years ago 2007-05-05 23:21:49
glx@openttd.org
(svn r9791) -Fix (r9779, FS#766): add TownLayoutByte to correctly save town layout value
2 files changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.h
Show inline comments
 
@@ -209,12 +209,17 @@ enum TownLayout {
 
	TL_2X2_GRID,         ///< Geometric 2x2 grid algorithm
 
	TL_3X3_GRID,         ///< Geometric 3x3 grid algorithm
 

	
 
	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 {
 
	NUM_PRICES = 49,
 
};
 

	
 
struct Prices {
 
	int32 station_value;
src/variables.h
Show inline comments
 
@@ -229,13 +229,13 @@ struct Patches {
 
	uint8 town_growth_rate;  ///< Town growth rate
 
	uint8 larger_towns;      ///< The number of cities to build. These start off larger and grow twice as fast
 
	uint8 initial_city_size; ///< Multiplier for the initial size of the cities compared to towns
 

	
 
	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;
 

	
 

	
 
struct Cheat {
0 comments (0 inline, 0 general)