summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-10 11:14:33 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-10 11:14:33 +0000
commitc7ddf7eb211057e1e5fe6d732ca06e5c24b35ba8 (patch)
tree186dc62a0438d498aeecacc2c9564f33e41bdd08
parent35e93e451fbf0b88401d9af137b2423fefe1dc58 (diff)
downloadopenttd-c7ddf7eb211057e1e5fe6d732ca06e5c24b35ba8.tar.xz
(svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
-rw-r--r--vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 9fd4461bb..97396546e 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -472,7 +472,7 @@ static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, Engine
colour = *sel == 0 ? 0xC : 0x10;
- if (!(ENGINE_AVAILABLE && show_outdated && RailVehInfo(i)->power && e->railtype == railtype)) {
+ if (!(ENGINE_AVAILABLE && show_outdated && RailVehInfo(i)->power && IsCompatibleRail(e->railtype, railtype))) {
if ((!IsCompatibleRail(e->railtype, railtype) && show_compatible)
|| (e->railtype != railtype && !show_compatible)
|| !(rvi->flags & RVI_WAGON) != is_engine ||