(svn r24787) -Fix: Unify checks for editability of settings.

This commit is contained in:
frosch
2012-12-05 19:35:09 +00:00
parent a499435351
commit 22dc45738d
3 changed files with 22 additions and 17 deletions

View File

@@ -101,6 +101,8 @@ struct SettingDescBase {
struct SettingDesc {
SettingDescBase desc; ///< Settings structure (going to configuration file)
SaveLoad save; ///< Internal structure (going to savegame, parts to config)
bool IsEditable(bool do_command = false) const;
};
/* NOTE: The only difference between SettingDesc and SettingDescGlob is