summaryrefslogtreecommitdiff
path: root/spritecache.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-02-13 08:12:03 +0000
committertron <tron@openttd.org>2005-02-13 08:12:03 +0000
commit58c46bed4072a563f037278d5f023c0bbf3c83a7 (patch)
tree93914d7bc0ccd415e8ec9d364681b6c4ee81f290 /spritecache.h
parentac6857ee280487777d02b7429988a9eabcdf77f7 (diff)
downloadopenttd-58c46bed4072a563f037278d5f023c0bbf3c83a7.tar.xz
(svn r1865) Fix some warnings
Diffstat (limited to 'spritecache.h')
-rw-r--r--spritecache.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/spritecache.h b/spritecache.h
index c5b50cb41..70acb2d39 100644
--- a/spritecache.h
+++ b/spritecache.h
@@ -17,8 +17,17 @@ typedef struct {
} SpriteDimension;
const SpriteDimension *GetSpriteDimension(SpriteID sprite);
-const Sprite *GetSprite(SpriteID sprite);
-const byte *GetNonSprite(SpriteID sprite);
+const void *GetRawSprite(SpriteID sprite);
+
+static inline const Sprite *GetSprite(SpriteID sprite)
+{
+ return GetRawSprite(sprite);
+}
+
+static inline const byte *GetNonSprite(SpriteID sprite)
+{
+ return GetRawSprite(sprite);
+}
void GfxLoadSprites(void);
void IncreaseSpriteLRU(void);