From ee9f64ecf4f061074d1c946d4b9386b85408fcf4 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 13 Feb 2006 22:13:02 +0000 Subject: (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. --- ai/default/default.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ai/default') 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; } } -- cgit v1.2.3-70-g09d2