(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
--- a/settings.c Tue Jul 19 06:48:12 2005 +0000
+++ b/settings.c Tue Jul 19 06:54:13 2005 +0000
@@ -2,6 +2,7 @@
#include "openttd.h"
#include "screenshot.h"
#include "sound.h"
+#include "spritecache.h"
#include "string.h"
#include "table/currency.h"
#include "network.h"
--- a/spritecache.c Tue Jul 19 06:48:12 2005 +0000
+++ b/spritecache.c Tue Jul 19 06:54:13 2005 +0000
@@ -54,6 +54,8 @@
static uint8 _sprite_ysize[NUM_SPRITES];
#endif
+bool _cache_sprites;
+
typedef struct MemBlock {
uint32 size;
byte data[VARARRAY_SIZE];
--- a/spritecache.h Tue Jul 19 06:48:12 2005 +0000
+++ b/spritecache.h Tue Jul 19 06:54:13 2005 +0000
@@ -31,4 +31,6 @@
void GfxLoadSprites(void);
void IncreaseSpriteLRU(void);
+extern bool _cache_sprites;
+
#endif
--- a/variables.h Tue Jul 19 06:48:12 2005 +0000
+++ b/variables.h Tue Jul 19 06:54:13 2005 +0000
@@ -341,8 +341,6 @@
VARDEF char _ini_videodriver[16], _ini_musicdriver[16], _ini_sounddriver[16];
-VARDEF bool _cache_sprites;
-
// debug features
VARDEF char _savedump_path[64];
VARDEF uint _savedump_first, _savedump_freq, _savedump_last;