summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-02-13 22:13:02 +0000
committerpeter1138 <peter1138@openttd.org>2006-02-13 22:13:02 +0000
commitee9f64ecf4f061074d1c946d4b9386b85408fcf4 (patch)
tree19ad3cdc5560cdb27c7d298c8cda39a9dd2717c9 /train_cmd.c
parent3d3ba2bb34b469c709c96042305072c75feb4bef (diff)
downloadopenttd-ee9f64ecf4f061074d1c946d4b9386b85408fcf4.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 'train_cmd.c')
-rw-r--r--train_cmd.c20
1 files changed, 0 insertions, 20 deletions
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;
}