diff options
author | tron <tron@openttd.org> | 2006-04-15 18:57:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-15 18:57:58 +0000 |
commit | 613104ba005d0f5da1641a46d3b601969cb8721c (patch) | |
tree | db1e3ccb1d2948a31bc26c5fdadafc2b75f2df69 /oldloader.c | |
parent | 6750dcdd8919d793d583d5b7285300a3bac8cb66 (diff) | |
download | openttd-613104ba005d0f5da1641a46d3b601969cb8721c.tar.xz |
(svn r4432) Make use of map access functions
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oldloader.c b/oldloader.c index 7d01fc18b..31f2ab293 100644 --- a/oldloader.c +++ b/oldloader.c @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "station_map.h" #include "table/strings.h" #include "functions.h" #include "map.h" @@ -359,7 +360,7 @@ static void FixOldStations(void) FOR_ALL_STATIONS(st) { /* Check if we need to swap width and height for the station */ - if (st->train_tile != 0 && _m[st->train_tile].m5 & 1) { + if (st->train_tile != 0 && GetRailStationAxis(st->train_tile) != AXIS_X) { swap_byte(&st->trainst_w, &st->trainst_h); } |