1346 |
1346 |
1347 /* from version 6.1 of the savegame, signs have an "owner" */ |
1347 /* from version 6.1 of the savegame, signs have an "owner" */ |
1348 if (CheckSavegameVersionOldStyle(6, 1)) UpdateSignOwner(); |
1348 if (CheckSavegameVersionOldStyle(6, 1)) UpdateSignOwner(); |
1349 |
1349 |
1350 /* In old version there seems to be a problem that water is owned by |
1350 /* In old version there seems to be a problem that water is owned by |
1351 OWNER_NONE, not OWNER_WATER.. I can't replicate it for the current |
1351 * OWNER_NONE, not OWNER_WATER.. I can't replicate it for the current |
1352 (4.3) version, so I just check when versions are older, and then |
1352 * (4.3) version, so I just check when versions are older, and then |
1353 walk through the whole map.. */ |
1353 * walk through the whole map.. */ |
1354 if (CheckSavegameVersionOldStyle(4, 3)) { |
1354 if (CheckSavegameVersionOldStyle(4, 3)) { |
1355 for (TileIndex t = 0; t < map_size; t++) { |
1355 for (TileIndex t = 0; t < map_size; t++) { |
1356 if (IsTileType(t, MP_WATER) && GetTileOwner(t) >= MAX_PLAYERS) { |
1356 if (IsTileType(t, MP_WATER) && GetTileOwner(t) >= MAX_PLAYERS) { |
1357 SetTileOwner(t, OWNER_WATER); |
1357 SetTileOwner(t, OWNER_WATER); |
1358 } |
1358 } |
2032 } |
2032 } |
2033 } |
2033 } |
2034 } |
2034 } |
2035 } |
2035 } |
2036 |
2036 |
2037 /* Check that house ids are still valid. */ |
2037 /* Check and update house and town values */ |
2038 CheckHouseIDs(); |
2038 UpdateHousesAndTowns(); |
2039 |
2039 |
2040 if (CheckSavegameVersion(43)) { |
2040 if (CheckSavegameVersion(43)) { |
2041 for (TileIndex t = 0; t < map_size; t++) { |
2041 for (TileIndex t = 0; t < map_size; t++) { |
2042 if (IsTileType(t, MP_INDUSTRY)) { |
2042 if (IsTileType(t, MP_INDUSTRY)) { |
2043 switch (GetIndustryGfx(t)) { |
2043 switch (GetIndustryGfx(t)) { |
2459 AfterLoadVehicles(false); |
2459 AfterLoadVehicles(false); |
2460 StartupEngines(); |
2460 StartupEngines(); |
2461 /* update station and waypoint graphics */ |
2461 /* update station and waypoint graphics */ |
2462 AfterLoadWaypoints(); |
2462 AfterLoadWaypoints(); |
2463 AfterLoadStations(); |
2463 AfterLoadStations(); |
2464 /* check that house ids are still valid */ |
2464 /* Check and update house and town values */ |
2465 CheckHouseIDs(); |
2465 UpdateHousesAndTowns(); |
2466 /* redraw the whole screen */ |
2466 /* redraw the whole screen */ |
2467 MarkWholeScreenDirty(); |
2467 MarkWholeScreenDirty(); |
2468 } |
2468 } |