vehicle_gui.c
changeset 3492 5670ff6c83e9
parent 3414 35a7ea80eee7
child 3650 92a3f5cae745
--- 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 ||