summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-06-30 13:24:17 +0000
committercelestar <celestar@openttd.org>2005-06-30 13:24:17 +0000
commit189a1c40178edec6294e8b35fdea4d575ba68476 (patch)
treecc241ceedbf5838b074773da1e453b668d1ce56f /openttd.c
parentb39195ddfa3ea0c7b1849412ce38950d36b0be4a (diff)
downloadopenttd-189a1c40178edec6294e8b35fdea4d575ba68476.tar.xz
(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
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 13a508326..75c7c3152 100644
--- a/openttd.c
+++ b/openttd.c
@@ -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;
}