summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-10 07:01:43 +0000
committertron <tron@openttd.org>2005-03-10 07:01:43 +0000
commit4bf173e9c1bc8fbee721ec0f452a7acce0507fc9 (patch)
treed5909b351256335ef8a005f2e4075036529c157e /newgrf.h
parente6feb224112ca93c97ba6572b38a8b2361565a6a (diff)
downloadopenttd-4bf173e9c1bc8fbee721ec0f452a7acce0507fc9.tar.xz
(svn r1981) Typedef some structs and enums
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/newgrf.h b/newgrf.h
index e768cc560..50582cff3 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -4,12 +4,13 @@
#include "sprite.h"
#include "station.h"
+typedef struct GRFFile GRFFile;
struct GRFFile {
char *filename;
uint32 grfid;
uint16 flags;
uint16 sprite_offset;
- struct GRFFile *next;
+ GRFFile *next;
/* A sprite group contains all sprites of a given vehicle (or multiple
* vehicles) when carrying given cargo. It consists of several sprite
@@ -28,13 +29,13 @@ struct GRFFile {
int spriteset_feature;
int spritegroups_count;
- struct SpriteGroup *spritegroups;
+ SpriteGroup *spritegroups;
- struct StationSpec stations[256];
+ StationSpec stations[256];
};
extern int _grffile_count;
-extern struct GRFFile *_first_grffile;
+extern GRFFile *_first_grffile;
void InitNewGRFFile(const char *filename, int sprite_offset);
void DecodeSpecialSprite(const char *filename, int num, int spriteid, int stage);