diff options
Diffstat (limited to 'newgrf_config.c')
-rw-r--r-- | newgrf_config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newgrf_config.c b/newgrf_config.c index 9cea7c49d..aa15ffb77 100644 --- a/newgrf_config.c +++ b/newgrf_config.c @@ -328,6 +328,8 @@ const GRFConfig *FindGRFConfig(uint32 grfid, uint8 *md5sum) return NULL; } +#ifdef ENABLE_NETWORK + /** Structure for UnknownGRFs; this is a lightweight variant of GRFConfig */ typedef struct UnknownGRF UnknownGRF; struct UnknownGRF { @@ -377,6 +379,8 @@ char *FindUnknownGRFName(uint32 grfid, uint8 *md5sum, bool create) return grf->name; } +#endif /* ENABLE_NETWORK */ + /* Retrieve a NewGRF from the current config by its grfid */ GRFConfig *GetGRFConfig(uint32 grfid) |