Changeset - r1219:f99685beede1
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-01-29 20:11:19
tron@openttd.org
(svn r1723) Save the map size in tiles, not number of bits
1 file changed with 10 insertions and 3 deletions:
misc.c
10
3
0 comments (0 inline, 0 general)
misc.c
Show inline comments
 
@@ -871,15 +871,22 @@ static const SaveLoadGlobVarList _map_di
 

	
 
static void Save_MAPSIZE(void)
 
{
 
	_map_dim_x = MapLogX();
 
	_map_dim_y = MapLogY();
 
	_map_dim_x = MapSizeX();
 
	_map_dim_y = MapSizeY();
 
	SlGlobList(_map_dimensions);
 
}
 

	
 
static void Load_MAPSIZE(void)
 
{
 
	uint bits_x = 0;
 
	uint bits_y = 0;
 

	
 
	SlGlobList(_map_dimensions);
 
	InitMap(_map_dim_x, _map_dim_y);
 

	
 
	for (; _map_dim_x > 1; _map_dim_x >>= 1) ++bits_x;
 
	for (; _map_dim_y > 1; _map_dim_y >>= 1) ++bits_y;
 

	
 
	InitMap(bits_x, bits_y);
 
}
 

	
 
static void SaveLoad_MAPT(void)
0 comments (0 inline, 0 general)