mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-10 14:24:02 +01:00
(svn r687) Export InitNewGRFFile() and DecodeSpecialSprite() properly.
This commit is contained in:
parent
ad068622fb
commit
989fd10d06
6
newgrf.h
6
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 */
|
||||
|
||||
|
@ -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…
Reference in New Issue
Block a user