diff -r 99a95cda1174 -r b47985557d1e src/ai/default/default.cpp --- a/src/ai/default/default.cpp Sun Jan 28 21:54:40 2007 +0000 +++ b/src/ai/default/default.cpp Tue Jan 30 11:53:35 2007 +0000 @@ -143,8 +143,8 @@ const Engine* e = GetEngine(i); if (!IsCompatibleRail(rvi->railtype, railtype) || - rvi->flags & RVI_WAGON || - (rvi->flags & RVI_MULTIHEAD && flag & 1) || + rvi->railveh_type == RAILVEH_WAGON || + (rvi->railveh_type == RAILVEH_MULTIHEAD && flag & 1) || !HASBIT(e->player_avail, _current_player) || e->reliability < 0x8A3D) { continue; @@ -2366,7 +2366,7 @@ const Engine* e = GetEngine(i); if (!IsCompatibleRail(rvi->railtype, railtype) || - !(rvi->flags & RVI_WAGON) || + rvi->railveh_type != RAILVEH_WAGON || !HASBIT(e->player_avail, _current_player)) { continue; }