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
commit4fcd2f0643e3d5a729252fcb013eec77f532c232 (patch)
tree186dc62a0438d498aeecacc2c9564f33e41bdd08
parent81e6d68f95e7dea5c0d7dd105d67980d64af71e0 (diff)
downloadopenttd-4fcd2f0643e3d5a729252fcb013eec77f532c232.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 ||