forked from mirror/OpenTTD
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user