(svn r4439) - NewGRF: Add support for Action 0x10. This also required an extra pre-stage (before initialize and activation) to scan the GRF file for GOTO labels. Big thanks for peter1138 for the guidance and answers, as well as parts of the code.

This commit is contained in:
Darkvater
2006-04-15 21:27:59 +00:00
parent fd8e02119c
commit cd25cba992
2 changed files with 97 additions and 8 deletions

View File

@@ -6,6 +6,13 @@
#include "sprite.h"
#include "station.h"
typedef struct GRFLabel {
byte label;
uint32 nfo_line;
uint32 pos;
struct GRFLabel *next;
} GRFLabel;
typedef struct GRFFile GRFFile;
struct GRFFile {
char *filename;
@@ -39,6 +46,8 @@ struct GRFFile {
uint32 param[0x80];
uint param_end; /// one more than the highest set parameter
GRFLabel *label; ///< Pointer to the first label. This is a linked list, not an array.
};
extern GRFFile *_first_grffile;