forked from mirror/OpenTTD
Codechange: Increase size of StationType field in map array
Move can station have wires bit to make room
This commit is contained in:
committed by
rubidium42
parent
72276e2d3c
commit
05b65703d3
@@ -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: {
|
||||
|
Reference in New Issue
Block a user