(svn r7692) -Fix: OpenTTD didn't compile without network enabled (newgrf sync code)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user