mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 17:09:10 +00:00
(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB
This commit is contained in:
@@ -341,7 +341,7 @@ static void ShowBuildTrainWindow(TileIndex tile)
|
||||
|
||||
if (tile != 0) {
|
||||
w->caption_color = GetTileOwner(tile);
|
||||
WP(w,buildtrain_d).railtype = _m[tile].m3 & 0xF;
|
||||
WP(w,buildtrain_d).railtype = GB(_m[tile].m3, 0, 4);
|
||||
} else {
|
||||
w->caption_color = _local_player;
|
||||
WP(w,buildtrain_d).railtype = GetBestRailtype(GetPlayer(_local_player));
|
||||
|
Reference in New Issue
Block a user