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. --- train_cmd.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'train_cmd.c') diff --git a/train_cmd.c b/train_cmd.c index 6bc48e883..4ab362821 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -609,25 +609,6 @@ static void NormalizeTrainVehInDepot(const Vehicle* u) } } -static const byte _railveh_score[] = { - 1, 4, 7, 19, 20, 30, 31, 19, - 20, 21, 22, 10, 11, 30, 31, 32, - 33, 34, 35, 29, 45, 32, 50, 40, - 41, 51, 52, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 60, 62, - 63, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 70, 71, 72, 73, - 74, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, -}; - - static int32 EstimateTrainCost(const RailVehicleInfo* rvi) { return rvi->base_cost * (_price.build_railvehicle >> 3) >> 5; @@ -788,7 +769,6 @@ int32 CmdBuildRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) } } } - _cmd_build_rail_veh_score = _railveh_score[p1]; return value; } -- cgit v1.2.3-54-g00ecf