From 5dcd689f5662d93ade95e3fd04332b8456605add Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 21 Apr 2008 20:50:58 +0000 Subject: (svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication. --- src/aircraft.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/aircraft.h') diff --git a/src/aircraft.h b/src/aircraft.h index 50611803c..671463b69 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -119,7 +119,7 @@ struct Aircraft : public Vehicle { ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; } WindowClass GetVehicleListWindowClass() const { return WC_AIRCRAFT_LIST; } bool IsPrimaryVehicle() const { return IsNormalAircraft(this); } - int GetImage(Direction direction) const; + SpriteID GetImage(Direction direction) const; int GetDisplaySpeed() const { return this->cur_speed * 10 / 16; } int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 16; } Money GetRunningCost() const { return AircraftVehInfo(this->engine_type)->running_cost * _price.aircraft_running; } -- cgit v1.2.3-54-g00ecf