(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate

This commit is contained in:
tron
2005-02-10 05:43:30 +00:00
parent 092e72d60d
commit 2a151d9354
11 changed files with 27 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
#include "ttd.h"
#include "debug.h"
#include "gfx.h"
#include "spritecache.h"
#include "fileio.h"
#include "newgrf.h"
#include "md5.h"
@@ -697,7 +698,7 @@ static uint RotateSprite(uint s)
}
#endif
byte *GetSpritePtr(uint sprite)
byte *GetSpritePtr(SpriteID sprite)
{
byte *p;
@@ -976,7 +977,7 @@ void GfxLoadSprites(void)
}
const SpriteDimension *GetSpriteDimension(uint sprite)
const SpriteDimension *GetSpriteDimension(SpriteID sprite)
{
static SpriteDimension sd_static;
SpriteDimension *sd;