Widen station type field in map array

This commit is contained in:
Jonathan G Rennison
2022-01-24 22:34:34 +00:00
parent fcc581fba9
commit ace75f6864
6 changed files with 16 additions and 5 deletions

View File

@@ -1050,6 +1050,15 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeatureMissing(XSLFI_MORE_STATION_TYPES)) {
/* Expansion of station type field in m6 */
for (TileIndex t = 0; t < MapSize(); t++) {
if (IsTileType(t, MP_STATION)) {
ClrBit(_me[t].m6, 6);
}
}
}
for (TileIndex t = 0; t < map_size; t++) {
switch (GetTileType(t)) {
case MP_STATION: {