From aa183e35d8f204f6f8a94a93226f7e700efc036e Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 4 Dec 2004 00:34:20 +0000 Subject: (svn r923) Forgot s/rail_vehinfo/RailVehInfo/ --- ai.c | 2 +- engine.h | 2 +- train_gui.c | 4 ++-- 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; -- cgit v1.2.3-70-g09d2