(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:
celestar
2005-06-30 13:24:17 +00:00
parent 7ff19d7dfd
commit 27e61cbd84
5 changed files with 38 additions and 9 deletions

View File

@@ -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;
}