mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 23:10:26 +00:00
hybrid knows actual geometry
This commit is contained in:
parent
3e715440cb
commit
7feb2ddcb3
@ -584,9 +584,10 @@ EX namespace hybrid {
|
||||
|
||||
hrmap *pmap;
|
||||
geometry_information *pcgip;
|
||||
geometry actual_geometry;
|
||||
|
||||
template<class T> auto in_actual(const T& t) -> decltype(t()) {
|
||||
dynamicval<eGeometry> g(geometry, gProduct);
|
||||
dynamicval<eGeometry> g(geometry, actual_geometry);
|
||||
dynamicval<geometry_information*> gc(cgip, pcgip);
|
||||
dynamicval<hrmap*> gu(currentmap, pmap);
|
||||
dynamicval<hrmap*> gup(pmap, NULL);
|
||||
@ -605,6 +606,7 @@ EX namespace hybrid {
|
||||
template<class T> auto in_underlying(const T& t) -> decltype(t()) {
|
||||
pcgip = cgip;
|
||||
dynamicval<hrmap*> gpm(pmap, this);
|
||||
dynamicval<hrmap*> gag(actual_geometry, geometry);
|
||||
dynamicval<eGeometry> g(geometry, underlying);
|
||||
dynamicval<geometry_information*> gc(cgip, underlying_cgip);
|
||||
dynamicval<hrmap*> gu(currentmap, underlying_map);
|
||||
|
Loading…
Reference in New Issue
Block a user