mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-21 22:53:19 +00:00
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
This commit is contained in:
parent
bbc4c5fc34
commit
c1da382e9a
@ -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"
|
||||
|
@ -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];
|
||||
|
@ -31,4 +31,6 @@ static inline const byte *GetNonSprite(SpriteID sprite)
|
||||
void GfxLoadSprites(void);
|
||||
void IncreaseSpriteLRU(void);
|
||||
|
||||
extern bool _cache_sprites;
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user