summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-15 08:49:46 +0000
committertron <tron@openttd.org>2005-11-15 08:49:46 +0000
commit84a16a0b30c3c8f1df9a3e9fa8c2bb1e88199403 (patch)
tree5408c5fefb49e90fec95ad27d0438500262d43c0 /station_cmd.c
parentba9157fbbc00fb6c10200c27eab692c067531721 (diff)
downloadopenttd-84a16a0b30c3c8f1df9a3e9fa8c2bb1e88199403.tar.xz
(svn r3184) GB/SB
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index e037e5081..2c98db257 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -3016,8 +3016,8 @@ static void Load_STNS(void)
// this means it's an oldstyle savegame without support for nonuniform stations
if (st->train_tile != 0 && st->trainst_h == 0) {
- int w = st->trainst_w >> 4;
- int h = st->trainst_w & 0xF;
+ int w = GB(st->trainst_w, 4, 4);
+ int h = GB(st->trainst_w, 0, 4);
if (_m[st->train_tile].m5 & 1) intswap(w, h);
st->trainst_w = w;