1
0
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:
tron
2005-07-20 15:29:28 +00:00
parent f432314fa9
commit ac66e3e28f
23 changed files with 130 additions and 128 deletions

View File

@@ -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;
}