From c1da382e9abb27d2e6f81532265259c0e7d329d2 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 19 Jul 2005 06:54:13 +0000 Subject: (svn r2633) Move spritecache related variable from variables.h to spritecache.[ch] --- settings.c | 1 + spritecache.c | 2 ++ spritecache.h | 2 ++ variables.h | 2 -- 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; -- cgit v1.2.3-70-g09d2