summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-21 20:50:58 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-21 20:50:58 +0000
commit5dcd689f5662d93ade95e3fd04332b8456605add (patch)
treeb307e9b6916fb53727cd6a80f2c5478a0b4ab819 /src/ship.h
parent173ac52da5c933f35e5cae799679bed8c580078f (diff)
downloadopenttd-5dcd689f5662d93ade95e3fd04332b8456605add.tar.xz
(svn r12824) -Codechange: Standardise routines for drawing vehicle images, using correct types and less duplication.
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship.h b/src/ship.h
index b0a0400ba..3d2e3cc02 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -35,7 +35,7 @@ struct Ship: public Vehicle {
WindowClass GetVehicleListWindowClass() const { return WC_SHIPS_LIST; }
void PlayLeaveStationSound() const;
bool IsPrimaryVehicle() const { return true; }
- int GetImage(Direction direction) const;
+ SpriteID GetImage(Direction direction) const;
int GetDisplaySpeed() const { return this->cur_speed * 10 / 32; }
int GetDisplayMaxSpeed() const { return this->max_speed * 10 / 32; }
Money GetRunningCost() const { return ShipVehInfo(this->engine_type)->running_cost * _price.ship_running; }