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
commit1b0091e0d29a59811522758c00b690f4f07b471b (patch)
tree5408c5fefb49e90fec95ad27d0438500262d43c0 /station_cmd.c
parent86585602294b7273d5cd0df34a3f6794258a62bb (diff)
downloadopenttd-1b0091e0d29a59811522758c00b690f4f07b471b.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;