diff options
author | Darkvater <Darkvater@openttd.org> | 2006-12-31 11:12:49 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-12-31 11:12:49 +0000 |
commit | 4dfbbe62b6e3de6c862f2879eb8c775260967c8d (patch) | |
tree | 197e3184d3e8078b111cddf56b56b118b8bda186 /newgrf_config.c | |
parent | c0ffe061bce16e43ba5c4d4f254c0807a7249dd2 (diff) | |
download | openttd-4dfbbe62b6e3de6c862f2879eb8c775260967c8d.tar.xz |
(svn r7692) -Fix: OpenTTD didn't compile without network enabled (newgrf sync code)
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) |