summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-07-19 06:54:13 +0000
committertron <tron@openttd.org>2005-07-19 06:54:13 +0000
commitc1da382e9abb27d2e6f81532265259c0e7d329d2 (patch)
treefae26cc86a51c7ba9f12b3fc7ca929a37429c4e3
parentbbc4c5fc3441237668fdcf61a3ff8189a803dd33 (diff)
downloadopenttd-c1da382e9abb27d2e6f81532265259c0e7d329d2.tar.xz
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
-rw-r--r--settings.c1
-rw-r--r--spritecache.c2
-rw-r--r--spritecache.h2
-rw-r--r--variables.h2
4 files changed, 5 insertions, 2 deletions
diff --git a/settings.c b/settings.c
index c6707dc62..0433bc9e1 100644
--- a/settings.c
+++ b/settings.c
@@ -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"
diff --git a/spritecache.c b/spritecache.c
index 519e24aff..34c4f3d67 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -54,6 +54,8 @@ static uint16 _sprite_xsize[NUM_SPRITES];
static uint8 _sprite_ysize[NUM_SPRITES];
#endif
+bool _cache_sprites;
+
typedef struct MemBlock {
uint32 size;
byte data[VARARRAY_SIZE];
diff --git a/spritecache.h b/spritecache.h
index 64c4ce51d..6f237d30b 100644
--- a/spritecache.h
+++ b/spritecache.h
@@ -31,4 +31,6 @@ static inline const byte *GetNonSprite(SpriteID sprite)
void GfxLoadSprites(void);
void IncreaseSpriteLRU(void);
+extern bool _cache_sprites;
+
#endif
diff --git a/variables.h b/variables.h
index c37cb4070..cef95f6f5 100644
--- a/variables.h
+++ b/variables.h
@@ -341,8 +341,6 @@ VARDEF Vehicle *_place_clicked_vehicle;
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;