(svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
authorpeter1138
Mon, 10 Apr 2006 11:14:33 +0000
changeset 3492 5670ff6c83e9
parent 3491 4c8427796c64
child 3493 4d5830846ec2
(svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
vehicle_gui.c
--- a/vehicle_gui.c	Mon Apr 10 07:15:58 2006 +0000
+++ b/vehicle_gui.c	Mon Apr 10 11:14:33 2006 +0000
@@ -472,7 +472,7 @@
 
 
 		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 ||