mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 07:59:09 +00:00
(svn r4343) [Autoreplace] Fix drawing of train list for outdated engines. Fixes FS#106
This commit is contained in:
@@ -472,7 +472,7 @@ static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, Engine
|
|||||||
|
|
||||||
|
|
||||||
colour = *sel == 0 ? 0xC : 0x10;
|
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)
|
if ((!IsCompatibleRail(e->railtype, railtype) && show_compatible)
|
||||||
|| (e->railtype != railtype && !show_compatible)
|
|| (e->railtype != railtype && !show_compatible)
|
||||||
|| !(rvi->flags & RVI_WAGON) != is_engine ||
|
|| !(rvi->flags & RVI_WAGON) != is_engine ||
|
||||||
|
Reference in New Issue
Block a user