summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2004-11-19 22:53:18 +0000
committerpasky <pasky@openttd.org>2004-11-19 22:53:18 +0000
commit989fd10d06ae56daf5459be73a9f395871f2037f (patch)
tree8402dbba208d06a6002edcc7a0d5156563aa9add
parentad068622fb920b64fe82a6317662eb58b8db991a (diff)
downloadopenttd-989fd10d06ae56daf5459be73a9f395871f2037f.tar.xz
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
-rw-r--r--newgrf.h6
-rw-r--r--spritecache.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/newgrf.h b/newgrf.h
index 0b20fdcd1..e768cc560 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -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 */
diff --git a/spritecache.c b/spritecache.c
index 8fd42ab01..e885f835a 100644
--- a/spritecache.c
+++ b/spritecache.c
@@ -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;