From 189a1c40178edec6294e8b35fdea4d575ba68476 Mon Sep 17 00:00:00 2001 From: celestar Date: Thu, 30 Jun 2005 13:24:17 +0000 Subject: (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 --- openttd.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openttd.c') 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; } -- cgit v1.2.3-54-g00ecf