1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-10 18:34:08 +00:00

reg3:: made extra_origins more distant to prevent accidental crash

This commit is contained in:
Zeno Rogue 2022-07-13 20:56:49 +02:00
parent 4c4120e4f0
commit 0e14d06e40

View File

@ -1706,11 +1706,11 @@ EX namespace reg3 {
auto& p1 = reg_gmatrix[orig]; auto& p1 = reg_gmatrix[orig];
heptagon *alt = p1.first; heptagon *alt = p1.first;
#if CAP_FIELD
transmatrix T = p1.second * xpush(10); transmatrix T = p1.second;
#else
transmatrix T = p1.second * xpush(10); for(int a=0; a<10; a++) {
#endif T = T * xpush(10);
#if CAP_BT #if CAP_BT
if(hyperbolic) { if(hyperbolic) {
dynamicval<eGeometry> g(geometry, gBinary3); dynamicval<eGeometry> g(geometry, gBinary3);
@ -1719,12 +1719,12 @@ EX namespace reg3 {
fixmatrix(T); fixmatrix(T);
} }
#endif #endif
}
heptagon *created = init_heptagon(S7); heptagon *created = init_heptagon(S7);
created->s = hsOrigin; created->s = hsOrigin;
created->fieldval = quotient_map->acells[fv]->master->fieldval; created->fieldval = quotient_map->acells[fv]->master->fieldval;
fixmatrix(T);
reg_gmatrix[created] = make_pair(alt, T); reg_gmatrix[created] = make_pair(alt, T);
altmap[alt].emplace_back(created, T); altmap[alt].emplace_back(created, T);