diff options
author | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 13:43:55 +0000 |
commit | ee15e3de13643b2d09abcc5424bf8e2d916cff75 (patch) | |
tree | 385ce09aff7cf19e072a627e83e91fe8a5f3fb3b /aircraft_gui.c | |
parent | 59e885c2bff5b1af6d7f5473106e9aa1f562abfd (diff) | |
download | openttd-ee15e3de13643b2d09abcc5424bf8e2d916cff75.tar.xz |
(svn r3172) static, const
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r-- | aircraft_gui.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c index cb092deeb..8cd5c620a 100644 --- a/aircraft_gui.c +++ b/aircraft_gui.c @@ -77,10 +77,9 @@ static void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selectio void CcBuildAircraft(bool success, TileIndex tile, uint32 p1, uint32 p2) { - Vehicle *v; - if (success) { - v = GetVehicle(_new_aircraft_id); + const Vehicle* v = GetVehicle(_new_aircraft_id); + if (v->tile == _backup_orders_tile) { _backup_orders_tile = 0; RestoreVehicleOrders(v, _backup_orders_data); @@ -508,7 +507,7 @@ static void AircraftViewWndProc(Window *w, WindowEvent *e) { switch(e->event) { case WE_PAINT: { - Vehicle *v = GetVehicle(w->window_number); + const Vehicle* v = GetVehicle(w->window_number); uint32 disabled = 1<<8; StringID str; |