mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
more guard fix
This commit is contained in:
parent
16f6266b7e
commit
fb557282f4
11
config.cpp
11
config.cpp
@ -106,11 +106,18 @@ template<> struct saver<ld> : dsaver<ld> {
|
||||
};
|
||||
#endif
|
||||
|
||||
EX void addparam(ld& val, const string s) {
|
||||
void addparam(ld& val, const string s);
|
||||
#endif
|
||||
|
||||
#if CAP_CONFIG
|
||||
void addparam(ld& val, const string s) {
|
||||
addsaver(val, s);
|
||||
params.insert({s, val});
|
||||
}
|
||||
|
||||
#else
|
||||
void addparam(ld& val, const string s) {
|
||||
params.insert({s, val});
|
||||
}
|
||||
#endif
|
||||
|
||||
EX ld bounded_mine_percentage = 0.1;
|
||||
|
Loading…
Reference in New Issue
Block a user