Files
@ r656:44c757c66b53
Branch filter:
Location: cpp/openttd-patchpack/source/newgrf.h - annotation
r656:44c757c66b53
1.2 KiB
text/x-c
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r463:fa51a6ca6476 r463:fa51a6ca6476 r463:fa51a6ca6476 r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c r463:fa51a6ca6476 r463:fa51a6ca6476 r463:fa51a6ca6476 r455:d13030ebb99c r455:d13030ebb99c r455:d13030ebb99c | #ifndef NEWGRF_H
#define NEWGRF_H
#include "sprite.h"
#include "station.h"
struct GRFFile {
char *filename;
uint32 grfid;
uint16 flags;
uint16 sprite_offset;
struct GRFFile *next;
/* A sprite group contains all sprites of a given vehicle (or multiple
* vehicles) when carrying given cargo. It consists of several sprite
* sets. Group ids are refered as "cargo id"s by TTDPatch
* documentation, contributing to the global confusion.
*
* A sprite set contains all sprites of a given vehicle carrying given
* cargo at a given *stage* - that is usually its load stage. Ie. you
* can have a spriteset for an empty wagon, wagon full of coal,
* half-filled wagon etc. Each spriteset contains eight sprites (one
* per direction) or four sprites if the vehicle is symmetric. */
int spriteset_start;
int spriteset_numsets;
int spriteset_numents;
int spriteset_feature;
int spritegroups_count;
struct SpriteGroup *spritegroups;
struct StationSpec stations[256];
};
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 */
|