(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.

This commit is contained in:
peter1138
2006-02-13 22:13:02 +00:00
parent caab27d88e
commit 601b226f04
5 changed files with 122 additions and 141 deletions

View File

@@ -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;
}
}