From 4fcd2f0643e3d5a729252fcb013eec77f532c232 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 10 Apr 2006 11:14:33 +0000 Subject: (svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106 --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vehicle_gui.c') 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 || -- cgit v1.2.3-54-g00ecf