equal
deleted
inserted
replaced
2084 /* Added variables to support newindustries */ |
2084 /* Added variables to support newindustries */ |
2085 Industry *i; |
2085 Industry *i; |
2086 FOR_ALL_INDUSTRIES(i) i->founder = OWNER_NONE; |
2086 FOR_ALL_INDUSTRIES(i) i->founder = OWNER_NONE; |
2087 } |
2087 } |
2088 |
2088 |
|
2089 if (CheckSavegameVersion(72)) { |
|
2090 /* Locks/shiplifts in very old savegames had OWNER_WATER as owner */ |
|
2091 for (TileIndex t = 0; t < MapSize(); t++) { |
|
2092 if (IsTileType(t, MP_WATER) && GetWaterTileType(t) == WATER_TILE_LOCK && |
|
2093 GetTileOwner(t) == OWNER_WATER) { |
|
2094 SetTileOwner(t, OWNER_NONE); |
|
2095 } |
|
2096 } |
|
2097 } |
|
2098 |
2089 /* Recalculate */ |
2099 /* Recalculate */ |
2090 Group *g; |
2100 Group *g; |
2091 FOR_ALL_GROUPS(g) { |
2101 FOR_ALL_GROUPS(g) { |
2092 const Vehicle *v; |
2102 const Vehicle *v; |
2093 FOR_ALL_VEHICLES(v) { |
2103 FOR_ALL_VEHICLES(v) { |