summaryrefslogtreecommitdiff
path: root/src/newgrf.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-02-24 19:36:47 +0000
committerpeter1138 <peter1138@openttd.org>2007-02-24 19:36:47 +0000
commit719f5c793083f5d124bb4049c3cb31516289993c (patch)
tree539b6b279cb4fdfb5708bda4b641faa5f776f25a /src/newgrf.h
parentdfda6b7da45a0afa9858e550e017057cca7facdf (diff)
downloadopenttd-719f5c793083f5d124bb4049c3cb31516289993c.tar.xz
(svn r8886) -Codechange: (NewGRF) Add (partial) cargo translation table support, applied to action 3s only.
Diffstat (limited to 'src/newgrf.h')
-rw-r--r--src/newgrf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.h b/src/newgrf.h
index 697ef9fc0..964f533ae 100644
--- a/src/newgrf.h
+++ b/src/newgrf.h
@@ -6,6 +6,7 @@
#include "station.h"
#include "newgrf_config.h"
#include "helpers.hpp"
+#include "cargotype.h"
typedef enum GrfLoadingStage {
GLS_FILESCAN,
@@ -60,6 +61,9 @@ typedef struct GRFFile {
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.
+
+ uint8 cargo_max;
+ CargoLabel *cargo_list;
} GRFFile;
extern GRFFile *_first_grffile;