summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-11-01 16:51:47 +0000
committerfrosch <frosch@openttd.org>2011-11-01 16:51:47 +0000
commitbbc3409942565cd6876016e270288517cb6acafb (patch)
tree3079bbaa5682e25b2805774cd2382e9c0c6ef109 /src/ship.h
parente802dc66b9d1e913e77816184ed2744f737823ec (diff)
downloadopenttd-bbc3409942565cd6876016e270288517cb6acafb.tar.xz
(svn r23080) -Feature: [NewGRF] Use variable 10 to enable vehicle GRFs to draw different sprites on the map and in various GUIs.
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ship.h b/src/ship.h
index b40697087..d24d29db2 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -15,7 +15,7 @@
#include "vehicle_base.h"
#include "water_map.h"
-void GetShipSpriteSize(EngineID engine, uint &width, uint &height);
+void GetShipSpriteSize(EngineID engine, uint &width, uint &height, EngineImageType image_type);
WaterClass GetEffectiveWaterClass(TileIndex tile);
/**
@@ -34,7 +34,7 @@ struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> {
ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
void PlayLeaveStationSound() const;
bool IsPrimaryVehicle() const { return true; }
- SpriteID GetImage(Direction direction) const;
+ SpriteID GetImage(Direction direction, EngineImageType image_type) const;
int GetDisplaySpeed() const { return this->cur_speed / 2; }
int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; }
Money GetRunningCost() const;