mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
reg3:: made extra_origins more distant to prevent accidental crash
This commit is contained in:
parent
4c4120e4f0
commit
0e14d06e40
26
reg3.cpp
26
reg3.cpp
@ -1706,25 +1706,25 @@ EX namespace reg3 {
|
||||
|
||||
auto& p1 = reg_gmatrix[orig];
|
||||
heptagon *alt = p1.first;
|
||||
#if CAP_FIELD
|
||||
transmatrix T = p1.second * xpush(10);
|
||||
#else
|
||||
transmatrix T = p1.second * xpush(10);
|
||||
#endif
|
||||
#if CAP_BT
|
||||
if(hyperbolic) {
|
||||
dynamicval<eGeometry> g(geometry, gBinary3);
|
||||
dynamicval<hrmap*> cm(currentmap, binary_map);
|
||||
binary_map->virtualRebase(alt, T);
|
||||
fixmatrix(T);
|
||||
|
||||
transmatrix T = p1.second;
|
||||
|
||||
for(int a=0; a<10; a++) {
|
||||
T = T * xpush(10);
|
||||
#if CAP_BT
|
||||
if(hyperbolic) {
|
||||
dynamicval<eGeometry> g(geometry, gBinary3);
|
||||
dynamicval<hrmap*> cm(currentmap, binary_map);
|
||||
binary_map->virtualRebase(alt, T);
|
||||
fixmatrix(T);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
heptagon *created = init_heptagon(S7);
|
||||
|
||||
created->s = hsOrigin;
|
||||
created->fieldval = quotient_map->acells[fv]->master->fieldval;
|
||||
fixmatrix(T);
|
||||
reg_gmatrix[created] = make_pair(alt, T);
|
||||
altmap[alt].emplace_back(created, T);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user