forked from mirror/OpenTTD
(svn r2499) -Codechange: Moved the semaphore bit from bit 2 to bit 3 in _map_hi for rails, in order to make way for pbs
This commit is contained in:
@@ -1410,5 +1410,14 @@ bool AfterLoadGame(uint version)
|
||||
}
|
||||
}
|
||||
|
||||
if (version < 0xF00) {
|
||||
BEGIN_TILE_LOOP(tile, MapSizeX(), MapSizeY(), 0) {
|
||||
if (IsTileType(tile, MP_RAILWAY) && HasSignals(tile) && HASBIT(_map3_hi[tile], 2)) {
|
||||
CLRBIT(_map3_hi[tile], 2);
|
||||
SETBIT(_map3_hi[tile], 3);
|
||||
}
|
||||
} END_TILE_LOOP(tile, MapSizeX(), MapSizeY(), 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user