diff options
author | Darkvater <Darkvater@openttd.org> | 2006-04-15 21:27:59 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-04-15 21:27:59 +0000 |
commit | cd25cba99299d6e82b945c501ab20521368d7b00 (patch) | |
tree | 4f0c15b00857a9afbce5e839f851c60bb9a7d198 /newgrf.h | |
parent | fd8e02119cfce55c7762ec54b4a86b38c60650b1 (diff) | |
download | openttd-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |