summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-04 00:34:20 +0000
committertron <tron@openttd.org>2004-12-04 00:34:20 +0000
commita7e5355754199d17f7ae52c337031cd4eda40b25 (patch)
tree8f5d141161a85ee31b6a3c2b2b0c3b77362845f3
parent5fc510bbfc0546ff09a0b3bf283572392dfdb2b5 (diff)
downloadopenttd-a7e5355754199d17f7ae52c337031cd4eda40b25.tar.xz
(svn r923) Forgot s/rail_vehinfo/RailVehInfo/
-rw-r--r--ai.c2
-rw-r--r--engine.h2
-rw-r--r--train_gui.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/ai.c b/ai.c
index 61326518b..5dacdb8c9 100644
--- a/ai.c
+++ b/ai.c
@@ -121,7 +121,7 @@ static int AiChooseTrainToBuild(byte railtype, int32 money, byte flag)
int i;
for (i = 0; i < NUM_TRAIN_ENGINES; i++) {
- const RailVehicleInfo *rvi = rail_vehinfo(i);
+ const RailVehicleInfo *rvi = RailVehInfo(i);
Engine *e = DEREF_ENGINE(i);
if (e->railtype != railtype || rvi->flags & RVI_WAGON
diff --git a/engine.h b/engine.h
index b8f3ee215..56b7d9572 100644
--- a/engine.h
+++ b/engine.h
@@ -157,7 +157,7 @@ extern ShipVehicleInfo _ship_vehicle_info[NUM_SHIP_ENGINES];
extern AircraftVehicleInfo _aircraft_vehicle_info[NUM_AIRCRAFT_ENGINES];
extern RoadVehicleInfo _road_vehicle_info[NUM_ROAD_ENGINES];
-static inline RailVehicleInfo *rail_vehinfo(uint e)
+static inline RailVehicleInfo *RailVehInfo(uint e)
{
assert(e < lengthof(_rail_vehicle_info));
return &_rail_vehicle_info[e];
diff --git a/train_gui.c b/train_gui.c
index 04f44cc35..8c80c7fe2 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -65,7 +65,7 @@ static void engine_drawing_loop(int *x, int *y, int *pos, int *sel,
for (i = 0; i < NUM_TRAIN_ENGINES; i++) {
const Engine *e = DEREF_ENGINE(i);
- const RailVehicleInfo *rvi = rail_vehinfo(i);
+ const RailVehicleInfo *rvi = RailVehInfo(i);
if (e->railtype != railtype || !(rvi->flags & RVI_WAGON) != is_engine ||
!HASBIT(e->player_avail, _local_player))
@@ -128,7 +128,7 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
WP(w,buildtrain_d).sel_engine = selected_id;
if (selected_id != -1) {
- const RailVehicleInfo *rvi = rail_vehinfo(selected_id);
+ const RailVehicleInfo *rvi = RailVehInfo(selected_id);
Engine *e;
YearMonthDay ymd;