diff options
author | tron <tron@openttd.org> | 2005-07-20 15:29:28 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-20 15:29:28 +0000 |
commit | f09638ad3d3eaf3574086e351a56bf5c14159894 (patch) | |
tree | a82679a91beaee405777f0f3c5e3c45814f1ea5d /oldloader.c | |
parent | f3645d73073e262d9dba2f4d69a9848be435b7df (diff) | |
download | openttd-f09638ad3d3eaf3574086e351a56bf5c14159894.tar.xz |
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oldloader.c b/oldloader.c index 26f5813b0..56ef7c51c 100644 --- a/oldloader.c +++ b/oldloader.c @@ -722,8 +722,8 @@ static bool LoadOldStation(LoadgameState *ls, int num) if (st->xy != 0) { if (st->train_tile) { /* Calculate the trainst_w and trainst_h */ - int w = (_old_platforms >> 3) & 0x7; - int h = (_old_platforms & 0x7); + uint w = GB(_old_platforms, 3, 3); + uint h = GB(_old_platforms, 0, 3); st->trainst_w = w; st->trainst_h = h; } |