From eb703a57687b7aeb221c30b98dabc69346bd35a0 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 2 May 2006 13:11:00 +0000 Subject: [PATCH] (svn r4669) - Backport from trunk (r4343): [Autoreplace] Fix drawing of train list for outdated engines. --- vehicle_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle_gui.c b/vehicle_gui.c index 14a77130e8..12ebb6515c 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -431,7 +431,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 (e->railtype != railtype || !(rvi->flags & RVI_WAGON) != is_engine || !HASBIT(e->player_avail, _local_player)) continue;