(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.

pull/155/head
pasky 20 years ago
parent ad068622fb
commit 989fd10d06

@ -1,6 +1,9 @@
#ifndef NEWGRF_H
#define NEWGRF_H
#include "sprite.h"
#include "station.h"
struct GRFFile {
char *filename;
uint32 grfid;
@ -33,6 +36,9 @@ struct GRFFile {
extern int _grffile_count;
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 */

@ -2,6 +2,7 @@
#include "ttd.h"
#include "gfx.h"
#include "fileio.h"
#include "newgrf.h"
#include <ctype.h>
#define SPRITECACHE_ID 0xF00F0006
@ -87,9 +88,6 @@ static const uint16 * const _slopes_spriteindexes[] = {
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)
{
byte type;

Loading…
Cancel
Save