1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 17:37:39 +00:00

fixup to save field 3d fix

This commit is contained in:
Zeno Rogue
2021-09-17 13:49:31 +02:00
parent a5228b06a5
commit aa6c0cb1cd
2 changed files with 5 additions and 0 deletions

View File

@@ -1461,8 +1461,11 @@ EX void enableFieldChange() {
fieldpattern::current_quotient_field.init(gxcur.primes[gxcur.current_prime_id].p);
}
EX eGeometry underlying_geometry;
EX void field_from_current() {
auto& go = ginf[geometry];
underlying_geometry = geometry;
dynamicval<eGeometry> g(geometry, gFieldQuotient);
auto& gg = ginf[geometry];
gg.sides = go.sides;