mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
ray:: fixed guards
This commit is contained in:
parent
5354c92c1a
commit
cba7782e64
@ -1149,6 +1149,10 @@ int readArgs() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto hook = addHook(hooks_args, 100, readArgs);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if CAP_CONFIG
|
||||||
void addconfig() {
|
void addconfig() {
|
||||||
addparam(exp_start, "ray_exp_start");
|
addparam(exp_start, "ray_exp_start");
|
||||||
addparam(exp_decay_exp, "ray_exp_decay_exp");
|
addparam(exp_decay_exp, "ray_exp_decay_exp");
|
||||||
@ -1164,9 +1168,9 @@ void addconfig() {
|
|||||||
addsaver(max_cells, "ray_max_cells");
|
addsaver(max_cells, "ray_max_cells");
|
||||||
addsaver(rays_generate, "ray_generate");
|
addsaver(rays_generate, "ray_generate");
|
||||||
}
|
}
|
||||||
|
auto hookc = addHook(hooks_configfile, 100, addconfig);
|
||||||
auto hook = addHook(hooks_args, 100, readArgs) + addHook(hooks_configfile, 100, addconfig);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MAXMDIM == 3
|
#if MAXMDIM == 3
|
||||||
|
Loading…
Reference in New Issue
Block a user