summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-19 13:48:08 +0000
committertron <tron@openttd.org>2006-03-19 13:48:08 +0000
commita90e46bf03365920f2a13254ec17f1d4f76727f6 (patch)
tree66c89a776909a6e784becbe687a7906a69356023 /oldloader.c
parent667666f1a3a108b6297527102f173deff56d072d (diff)
downloadopenttd-a90e46bf03365920f2a13254ec17f1d4f76727f6.tar.xz
(svn r3981) More work for the rail accessing functions and enums
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oldloader.c b/oldloader.c
index 4489e44f1..c17c8077f 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -1562,7 +1562,7 @@ static bool LoadOldMain(LoadgameState *ls)
for (i = 0; i < OLD_MAP_SIZE; i ++) {
if (IsTileType(i, MP_RAILWAY)) {
/* We save presignals different from TTDPatch, convert them */
- if (GB(_m[i].m5, 6, 2) == 1) {
+ if (GetRailTileType(i) == RAIL_TYPE_SIGNALS) {
/* This byte is always zero in TTD for this type of tile */
if (_m[i].m4) /* Convert the presignals to our own format */
_m[i].m4 = (_m[i].m4 >> 1) & 7;