mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user