From f09638ad3d3eaf3574086e351a56bf5c14159894 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 20 Jul 2005 15:29:28 +0000 Subject: (svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read --- oldloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oldloader.c') 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; } -- cgit v1.2.3-54-g00ecf