mirror of https://github.com/OpenTTD/OpenTTD
(svn r16554) -Fix (r16433): compilation with disabled network was broken
parent
5a6bb53894
commit
3eb8f643fb
|
@ -1523,6 +1523,7 @@ void SetDefaultCompanySettings(CompanyID cid)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(ENABLE_NETWORK)
|
||||||
/**
|
/**
|
||||||
* Sync all company settings in a multiplayer game.
|
* Sync all company settings in a multiplayer game.
|
||||||
*/
|
*/
|
||||||
|
@ -1538,6 +1539,7 @@ void SyncCompanySettings()
|
||||||
if (old_value != new_value) NetworkSend_Command(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, NULL, NULL);
|
if (old_value != new_value) NetworkSend_Command(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, NULL, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* ENABLE_NETWORK */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the index in the _company_settings array of a setting
|
* Get the index in the _company_settings array of a setting
|
||||||
|
|
|
@ -26,7 +26,12 @@ void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config);
|
||||||
void DeleteGRFPresetFromConfig(const char *config_name);
|
void DeleteGRFPresetFromConfig(const char *config_name);
|
||||||
|
|
||||||
uint GetCompanySettingIndex(const char *name);
|
uint GetCompanySettingIndex(const char *name);
|
||||||
void SyncCompanySettings();
|
|
||||||
void SetDefaultCompanySettings(CompanyID cid);
|
void SetDefaultCompanySettings(CompanyID cid);
|
||||||
|
|
||||||
|
#if defined(ENABLE_NETWORK)
|
||||||
|
void SyncCompanySettings();
|
||||||
|
#else /* ENABLE_NETWORK */
|
||||||
|
static inline void SyncCompanySettings() {}
|
||||||
|
#endif /* ENABLE_NETWORK */
|
||||||
|
|
||||||
#endif /* SETTINGS_FUNC_H */
|
#endif /* SETTINGS_FUNC_H */
|
||||||
|
|
Loading…
Reference in New Issue