Codechange: Increase size of StationType field in map array

Move can station have wires bit to make room
This commit is contained in:
Jonathan G Rennison
2024-04-21 01:08:12 +01:00
committed by rubidium42
parent 72276e2d3c
commit 05b65703d3
5 changed files with 18 additions and 8 deletions

View File

@@ -907,6 +907,15 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(SLV_INCREASE_STATION_TYPE_FIELD_SIZE)) {
/* Expansion of station type field in m6 */
for (auto t : Map::Iterate()) {
if (IsTileType(t, MP_STATION)) {
ClrBit(t.m6(), 6);
}
}
}
for (auto t : Map::Iterate()) {
switch (GetTileType(t)) {
case MP_STATION: {