ttd.c
changeset 831 f1cee10e3422
parent 802 754d2d245efc
child 840 79b6733ddbab
equal deleted inserted replaced
830:8114845804c9 831:f1cee10e3422
  1227 	// from version 4.2 of the savegame, currencies are in a different order
  1227 	// from version 4.2 of the savegame, currencies are in a different order
  1228 	if (version <= 0x401) {
  1228 	if (version <= 0x401) {
  1229 		UpdateCurrencies();
  1229 		UpdateCurrencies();
  1230 	}
  1230 	}
  1231 
  1231 
       
  1232 	/* In old version there seems to be a problem that water is owned by
       
  1233 	    OWNER_NONE, not OWNER_WATER.. I can't replicate it for the current
       
  1234 	    (0x402) version, so I just check when versions are older, and then
       
  1235 	    walk through the whole map.. */
       
  1236 	if (version <= 0x402) {
       
  1237 		TileIndex tile = TILE_XY(0,0);
       
  1238 		uint w = MapSizeX();
       
  1239 		uint h = MapSizeY();
       
  1240 
       
  1241 		BEGIN_TILE_LOOP(tile_cur, w, h, tile)
       
  1242 			if (IS_TILETYPE(tile_cur, MP_WATER) && _map_owner[tile_cur] != OWNER_WATER)
       
  1243 				_map_owner[tile_cur] = OWNER_WATER;
       
  1244 		END_TILE_LOOP(tile_cur, w, h, tile)
       
  1245 	}
       
  1246 
  1232 	// convert road side to my format.
  1247 	// convert road side to my format.
  1233 	if (_opt.road_side) _opt.road_side = 1;
  1248 	if (_opt.road_side) _opt.road_side = 1;
  1234 
  1249 
  1235 	// Load the sprites
  1250 	// Load the sprites
  1236 	GfxLoadSprites();
  1251 	GfxLoadSprites();