mirror of https://github.com/OpenTTD/OpenTTD
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
parent
ad068622fb
commit
989fd10d06
6
newgrf.h
6
newgrf.h
|
@ -1,6 +1,9 @@
|
||||||
#ifndef NEWGRF_H
|
#ifndef NEWGRF_H
|
||||||
#define NEWGRF_H
|
#define NEWGRF_H
|
||||||
|
|
||||||
|
#include "sprite.h"
|
||||||
|
#include "station.h"
|
||||||
|
|
||||||
struct GRFFile {
|
struct GRFFile {
|
||||||
char *filename;
|
char *filename;
|
||||||
uint32 grfid;
|
uint32 grfid;
|
||||||
|
@ -33,6 +36,9 @@ struct GRFFile {
|
||||||
extern int _grffile_count;
|
extern int _grffile_count;
|
||||||
extern struct GRFFile *_first_grffile;
|
extern struct GRFFile *_first_grffile;
|
||||||
|
|
||||||
|
void InitNewGRFFile(const char *filename, int sprite_offset);
|
||||||
|
void DecodeSpecialSprite(const char *filename, int num, int spriteid, int stage);
|
||||||
|
|
||||||
|
|
||||||
#endif /* NEWGRF_H */
|
#endif /* NEWGRF_H */
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#include "ttd.h"
|
#include "ttd.h"
|
||||||
#include "gfx.h"
|
#include "gfx.h"
|
||||||
#include "fileio.h"
|
#include "fileio.h"
|
||||||
|
#include "newgrf.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#define SPRITECACHE_ID 0xF00F0006
|
#define SPRITECACHE_ID 0xF00F0006
|
||||||
|
@ -87,9 +88,6 @@ static const uint16 * const _slopes_spriteindexes[] = {
|
||||||
|
|
||||||
static void CompactSpriteCache();
|
static void CompactSpriteCache();
|
||||||
|
|
||||||
void InitNewGRFFile(const char *filename, int sprite_offset);
|
|
||||||
void DecodeSpecialSprite(const char *filename, int num, int load_index, int stage);
|
|
||||||
|
|
||||||
static void ReadSpriteHeaderSkipData(int num, int load_index)
|
static void ReadSpriteHeaderSkipData(int num, int load_index)
|
||||||
{
|
{
|
||||||
byte type;
|
byte type;
|
||||||
|
|
Loading…
Reference in New Issue