summaryrefslogtreecommitdiff
path: root/src/newgrf_config.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-21 17:29:38 +0000
committerrubidium <rubidium@openttd.org>2007-01-21 17:29:38 +0000
commita93eb4b8d8e2b7c8591bb31e22c251f9a2dee99b (patch)
tree5a44a4c1db6458d0c84701360bed493c40353da1 /src/newgrf_config.h
parent365dc05cd7e624872d07663a6881a1e44794baf0 (diff)
downloadopenttd-a93eb4b8d8e2b7c8591bb31e22c251f9a2dee99b.tar.xz
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
Diffstat (limited to 'src/newgrf_config.h')
-rw-r--r--src/newgrf_config.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/newgrf_config.h b/src/newgrf_config.h
index 0864a63a2..38c1e4a46 100644
--- a/src/newgrf_config.h
+++ b/src/newgrf_config.h
@@ -15,14 +15,17 @@ typedef enum {
GCF_COPY, ///< The data is copied from a grf in _all_grfs
} GCF_Flags;
-typedef struct GRFConfig {
+typedef struct GRFIdentifier {
+ uint32 grfid;
+ uint8 md5sum[16];
+} GRF;
+
+typedef struct GRFConfig : public GRFIdentifier {
char *filename;
char *name;
char *info;
- uint32 grfid;
uint8 flags;
- uint8 md5sum[16];
uint32 param[0x80];
uint8 num_params;