diff options
author | tron <tron@openttd.org> | 2005-10-18 11:23:58 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-18 11:23:58 +0000 |
commit | f3de17256046ed3286ba17d130c7701a8729ac16 (patch) | |
tree | 000f00442c2db76662d897b20b8ca8d16bb0a4ba /vehicle_gui.c | |
parent | d4752ba0da4c6387020167b3acee938ed14d9a66 (diff) | |
download | openttd-f3de17256046ed3286ba17d130c7701a8729ac16.tar.xz |
(svn r3059) Use bitfields to encode railtype and climates of engines instead of manual shifting/anding
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index b7a03acf8..ce28ca7fc 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -409,7 +409,7 @@ static int CDECL VehicleMaxSpeedSorter(const void *a, const void *b) // this define is to match engine.c, but engine.c keeps it to itself // ENGINE_AVAILABLE is used in ReplaceVehicleWndProc -#define ENGINE_AVAILABLE ((e->flags & 1 && HASBIT(info->railtype_climates, _opt.landscape)) || HASBIT(e->player_avail, _local_player)) +#define ENGINE_AVAILABLE ((e->flags & 1 && HASBIT(info->climates, _opt.landscape)) || HASBIT(e->player_avail, _local_player)) /* if show_outdated is selected, it do not sort psudo engines properly but it draws all engines * if used compined with show_cars set to false, it will work as intended. Replace window do it like that |