diff options
author | rubidium <rubidium@openttd.org> | 2007-01-10 18:56:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-01-10 18:56:51 +0000 |
commit | f35ed4bbc2b05f1b83476b60948d64375f77f1b4 (patch) | |
tree | 1a1c59c13ddb1d152052f3a3a0bcffe4fb531173 /src/spritecache.h | |
parent | a332d10fd938f345fff18e5f4a662a58f692f734 (diff) | |
download | openttd-f35ed4bbc2b05f1b83476b60948d64375f77f1b4.tar.xz |
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
Diffstat (limited to 'src/spritecache.h')
-rw-r--r-- | src/spritecache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spritecache.h b/src/spritecache.h index 3a5676a63..bddc75f69 100644 --- a/src/spritecache.h +++ b/src/spritecache.h @@ -17,19 +17,19 @@ bool SpriteExists(SpriteID sprite); static inline const Sprite *GetSprite(SpriteID sprite) { - return GetRawSprite(sprite); + return (Sprite*)GetRawSprite(sprite); } static inline const byte *GetNonSprite(SpriteID sprite) { - return GetRawSprite(sprite); + return (byte*)GetRawSprite(sprite); } void GfxInitSpriteMem(void); void IncreaseSpriteLRU(void); bool LoadNextSprite(int load_index, byte file_index); -void DupSprite(SpriteID old, SpriteID new); +void DupSprite(SpriteID old_spr, SpriteID new_spr); void SkipSprites(uint count); #endif /* SPRITECACHE_H */ |