diff options
author | peter1138 <peter1138@openttd.org> | 2006-02-13 22:13:02 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-02-13 22:13:02 +0000 |
commit | 601b226f0423d524346a3b437f11b2a389c8b3e1 (patch) | |
tree | 19ad3cdc5560cdb27c7d298c8cda39a9dd2717c9 /ai | |
parent | caab27d88ee61738cc8229a80d2197db53fa905c (diff) | |
download | openttd-601b226f0423d524346a3b437f11b2a389c8b3e1.tar.xz |
(svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and remove global variable to return data as we can now access this directly.
Diffstat (limited to 'ai')
-rw-r--r-- | ai/default/default.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/default/default.c b/ai/default/default.c index 9c639bea6..ef7f96812 100644 --- a/ai/default/default.c +++ b/ai/default/default.c @@ -143,8 +143,8 @@ static EngineID AiChooseTrainToBuild(byte railtype, int32 money, byte flag, Tile ret = DoCommandByTile(tile, i, 0, 0, CMD_BUILD_RAIL_VEHICLE); if (!CmdFailed(ret) && ret <= money && - _cmd_build_rail_veh_score >= best_veh_score) { - best_veh_score = _cmd_build_rail_veh_score; + rvi->ai_rank >= best_veh_score) { + best_veh_score = rvi->ai_rank; best_veh_index = i; } } |