mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-26 12:43:12 +00:00
product:: in_underlying functions now simply call f when not in product
This commit is contained in:
parent
ce36413968
commit
d91adc45a5
@ -719,11 +719,13 @@ EX namespace product {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX void in_underlying_map(const reaction_t& f) {
|
EX void in_underlying_map(const reaction_t& f) {
|
||||||
((hrmap_product*)currentmap)->in_underlying(f);
|
if(!prod) f();
|
||||||
|
else ((hrmap_product*)currentmap)->in_underlying(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
template<class T> auto in_underlying_geometry(const T& f) {
|
template<class T> auto in_underlying_geometry(const T& f) {
|
||||||
|
if(!prod) return f();
|
||||||
dynamicval<eGeometry> g(geometry, underlying);
|
dynamicval<eGeometry> g(geometry, underlying);
|
||||||
dynamicval<geometry_information*> gc(cgip, underlying_cgip);
|
dynamicval<geometry_information*> gc(cgip, underlying_cgip);
|
||||||
return f();
|
return f();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user