mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
added missing CAP_RAY guard
This commit is contained in:
parent
adc17dce1b
commit
7e5ff7b318
18
hypgraph.cpp
18
hypgraph.cpp
@ -1579,8 +1579,22 @@ struct flat_model_enabler {
|
||||
projection_configuration bak;
|
||||
ld sf;
|
||||
bool ru;
|
||||
flat_model_enabler() { bak = pconf; sf = stretch::factor; stretch::factor = 0; ru = ray::in_use; ray::in_use = false; enable_flat_model(); }
|
||||
~flat_model_enabler() { pconf = bak; stretch::factor = sf; ray::in_use = ru; calcparam(); }
|
||||
flat_model_enabler() {
|
||||
bak = pconf;
|
||||
sf = stretch::factor; stretch::factor = 0;
|
||||
#if CAP_RAY
|
||||
ru = ray::in_use; ray::in_use = false;
|
||||
#endif
|
||||
enable_flat_model();
|
||||
}
|
||||
~flat_model_enabler() {
|
||||
pconf = bak;
|
||||
stretch::factor = sf;
|
||||
#if CAP_RAY
|
||||
ray::in_use = ru;
|
||||
#endif
|
||||
calcparam();
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user