(svn r7692) -Fix: OpenTTD didn't compile without network enabled (newgrf sync code)

This commit is contained in:
Darkvater
2006-12-31 11:12:49 +00:00
parent 1814212dc7
commit ba25cf7def
3 changed files with 10 additions and 1 deletions

View File

@@ -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)