summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;