Mercurial > hg > openttd
changeset 3492:fe9d07b92e4d draft
(svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 10 Apr 2006 11:14:33 +0000 |
parents | 6aef91e18846 |
children | 4662ea9f4f4a |
files | vehicle_gui.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -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 ||