(svn r4669) - Backport from trunk (r4343):

[Autoreplace] Fix drawing of train list for outdated engines.
This commit is contained in:
Darkvater 2006-05-02 13:11:00 +00:00
parent f0e3fa29e5
commit eb703a5768
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,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 (e->railtype != railtype || !(rvi->flags & RVI_WAGON) != is_engine ||
!HASBIT(e->player_avail, _local_player))
continue;