1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 12:57:57 +00:00

fixed switching to 2d field quotient after 3d field quotient, and refactored

This commit is contained in:
Zeno Rogue
2021-04-23 20:10:06 +02:00
parent 056419288c
commit 4da935a4e2
2 changed files with 18 additions and 9 deletions

View File

@@ -1366,10 +1366,13 @@ EX void enableFieldChange() {
fieldpattern::quotient_field_changed = true;
nextPrimes(gxcur);
dynamicval<eGeometry> g(geometry, gFieldQuotient);
ginf[geometry].g = ginf[gxcur.base].g;
ginf[geometry].sides = ginf[gxcur.base].sides;
ginf[geometry].vertex = ginf[gxcur.base].vertex;
ginf[geometry].distlimit = ginf[gxcur.base].distlimit;
ginf[geometry].tiling_name = ginf[gxcur.base].tiling_name;
ginf[geometry].default_variation = ginf[gxcur.base].default_variation;
ginf[geometry].flags = qFIELD | qANYQ | qBOUNDED;
fieldpattern::current_quotient_field.init(gxcur.primes[gxcur.current_prime_id].p);
}