From 87be1312d2c727df480b6f5b0d3e37bf3887eb2d Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 19 Jul 2005 06:54:13 +0000 Subject: [PATCH] (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 c6707dc620..0433bc9e14 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 519e24aff1..34c4f3d672 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 64c4ce51d4..6f237d30b7 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 c37cb40703..cef95f6f57 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;