(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
--- a/newgrf.h Fri Nov 19 22:29:30 2004 +0000
+++ b/newgrf.h Fri Nov 19 22:53:18 2004 +0000
@@ -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 @@
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 */
--- a/spritecache.c Fri Nov 19 22:29:30 2004 +0000
+++ b/spritecache.c Fri Nov 19 22:53:18 2004 +0000
@@ -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 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;