diff options
author | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-09-02 15:20:38 +0000 |
commit | c8e8911ef676f503ac5789d3fefac1278cdef971 (patch) | |
tree | e7050537d14303dbc6bc9a461ff38931861cc4aa /src/ship_cmd.cpp | |
parent | cbe397388f0ef537b61095b05ee4edfe9dd92202 (diff) | |
download | openttd-c8e8911ef676f503ac5789d3fefac1278cdef971.tar.xz |
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r-- | src/ship_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 1b1eda4a4..8d28a406c 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -84,7 +84,7 @@ void DrawShipEngine(int x, int y, EngineID engine, SpriteID pal) */ void GetShipSpriteSize(EngineID engine, uint &width, uint &height) { - const Sprite *spr = GetSprite(GetShipIcon(engine)); + const Sprite *spr = GetSprite(GetShipIcon(engine), ST_NORMAL); width = spr->width; height = spr->height; |