summaryrefslogtreecommitdiff
path: root/spritecache.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-22 20:23:18 +0000
committertron <tron@openttd.org>2005-01-22 20:23:18 +0000
commit189ca7370762dca088a13d08ccb035e364758abb (patch)
treef77535f8809840126757131b192e611f6d912bdf /spritecache.c
parent7984a9a5007f4bdf1107cdf646c42e3e137f65cf (diff)
downloadopenttd-189ca7370762dca088a13d08ccb035e364758abb.tar.xz
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
Diffstat (limited to 'spritecache.c')
-rw-r--r--spritecache.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/spritecache.c b/spritecache.c
index c7f32b4f3..2cec837fc 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -82,7 +82,7 @@ static const uint16 * const _slopes_spriteindexes[] = {
_slopes_spriteindexes_3,
};
-static void CompactSpriteCache();
+static void CompactSpriteCache(void);
static void ReadSpriteHeaderSkipData(int num, int load_index)
{
@@ -409,7 +409,7 @@ static bool HandleCachedSpriteHeaders(const char *filename, bool read)
#define S_FREE_MASK 1
#define S_HDRSIZE sizeof(uint32)
-static uint32 GetSpriteCacheUsage()
+static uint32 GetSpriteCacheUsage(void)
{
byte *s = _spritecache_ptr;
size_t cur_size, tot_size = 0;
@@ -425,7 +425,7 @@ static uint32 GetSpriteCacheUsage()
}
-void IncreaseSpriteLRU()
+void IncreaseSpriteLRU(void)
{
int i;
@@ -461,7 +461,7 @@ void IncreaseSpriteLRU()
// Called when holes in the sprite cache should be removed.
// That is accomplished by moving the cached data.
-static void CompactSpriteCache()
+static void CompactSpriteCache(void)
{
byte *s, *t;
size_t size, sizeb, cur_size;
@@ -519,7 +519,7 @@ static void CompactSpriteCache()
}
}
-static void DeleteEntryFromSpriteCache()
+static void DeleteEntryFromSpriteCache(void)
{
int i;
int best = -1;
@@ -814,7 +814,7 @@ static bool FileMD5(const MD5File file, bool warn)
* If neither are found, Windows palette is assumed.
*
* (Note: Also checks sample.cat for corruption) */
-void CheckExternalFiles()
+void CheckExternalFiles(void)
{
int i;
int dos=0, win=0; // count of files from this version
@@ -845,7 +845,7 @@ void CheckExternalFiles()
}
}
-static void LoadSpriteTables()
+static void LoadSpriteTables(void)
{
int i,j;
FileList *files; // list of grf files to be loaded. Either Windows files or DOS files
@@ -957,7 +957,8 @@ void GfxInitSpriteMem(byte *ptr, uint32 size)
}
-void GfxLoadSprites() {
+void GfxLoadSprites(void)
+{
static byte *_sprite_mem;
// Need to reload the sprites only if the landscape changed