mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#include "openttd.h"
|
#include "openttd.h"
|
||||||
#include "screenshot.h"
|
#include "screenshot.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
|
#include "spritecache.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "table/currency.h"
|
#include "table/currency.h"
|
||||||
#include "network.h"
|
#include "network.h"
|
||||||
|
@@ -54,6 +54,8 @@ static uint16 _sprite_xsize[NUM_SPRITES];
|
|||||||
static uint8 _sprite_ysize[NUM_SPRITES];
|
static uint8 _sprite_ysize[NUM_SPRITES];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool _cache_sprites;
|
||||||
|
|
||||||
typedef struct MemBlock {
|
typedef struct MemBlock {
|
||||||
uint32 size;
|
uint32 size;
|
||||||
byte data[VARARRAY_SIZE];
|
byte data[VARARRAY_SIZE];
|
||||||
|
@@ -31,4 +31,6 @@ static inline const byte *GetNonSprite(SpriteID sprite)
|
|||||||
void GfxLoadSprites(void);
|
void GfxLoadSprites(void);
|
||||||
void IncreaseSpriteLRU(void);
|
void IncreaseSpriteLRU(void);
|
||||||
|
|
||||||
|
extern bool _cache_sprites;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -341,8 +341,6 @@ VARDEF Vehicle *_place_clicked_vehicle;
|
|||||||
|
|
||||||
VARDEF char _ini_videodriver[16], _ini_musicdriver[16], _ini_sounddriver[16];
|
VARDEF char _ini_videodriver[16], _ini_musicdriver[16], _ini_sounddriver[16];
|
||||||
|
|
||||||
VARDEF bool _cache_sprites;
|
|
||||||
|
|
||||||
// debug features
|
// debug features
|
||||||
VARDEF char _savedump_path[64];
|
VARDEF char _savedump_path[64];
|
||||||
VARDEF uint _savedump_first, _savedump_freq, _savedump_last;
|
VARDEF uint _savedump_first, _savedump_freq, _savedump_last;
|
||||||
|
Reference in New Issue
Block a user