diff options
author | tron <tron@openttd.org> | 2005-10-16 14:07:11 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-16 14:07:11 +0000 |
commit | 24250c6a3a8b2e11eabb7230ea9afe538ec45f33 (patch) | |
tree | b1ee8bda78c882c66ed07b46f44b9820ee544c72 /ai/default | |
parent | e6b0b1e33dac442a4fd324cb1506fb11ce487ceb (diff) | |
download | openttd-24250c6a3a8b2e11eabb7230ea9afe538ec45f33.tar.xz |
(svn r3051) Remove the unused function RemoteSubsidyAdd()
Diffstat (limited to 'ai/default')
-rw-r--r-- | ai/default/default.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 8257b0026..59227e32a 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -133,12 +133,16 @@ static int AiChooseTrainToBuild(byte railtype, int32 money, byte flag, TileIndex const RailVehicleInfo *rvi = RailVehInfo(i); const Engine* e = GetEngine(i); - if (e->railtype != railtype || rvi->flags & RVI_WAGON - || !HASBIT(e->player_avail, _current_player) || e->reliability < 0x8A3D) + if (e->railtype != railtype || + rvi->flags & RVI_WAGON || + (rvi->flags & RVI_MULTIHEAD && flag & 1) || + !HASBIT(e->player_avail, _current_player) || + e->reliability < 0x8A3D) { continue; + } ret = DoCommandByTile(tile, i, 0, 0, CMD_BUILD_RAIL_VEHICLE); - if (!CmdFailed(ret) && (!(_cmd_build_rail_veh_var1&1) || !(flag&1)) && ret <= money && + if (!CmdFailed(ret) && ret <= money && _cmd_build_rail_veh_score >= best_veh_score) { best_veh_score = _cmd_build_rail_veh_score; best_veh_index = i; |