summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-04-15 21:27:59 +0000
committerDarkvater <Darkvater@openttd.org>2006-04-15 21:27:59 +0000
commitcd25cba99299d6e82b945c501ab20521368d7b00 (patch)
tree4f0c15b00857a9afbce5e839f851c60bb9a7d198 /newgrf.h
parentfd8e02119cfce55c7762ec54b4a86b38c60650b1 (diff)
downloadopenttd-cd25cba99299d6e82b945c501ab20521368d7b00.tar.xz
(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.
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/newgrf.h b/newgrf.h
index 6739d23d8..f3abac6e6 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -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;