diff src/ship_cmd.cpp @ 10056:7867701f63e4 draft

(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
author rubidium <rubidium@openttd.org>
date Tue, 02 Sep 2008 15:20:38 +0000 (2008-09-02)
parents 82b94a0a3f6c
children 57aa34285d05
line wrap: on
line diff
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -84,7 +84,7 @@
  */
 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;