mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
fixed a problem with create_pattern() when not using currfp
This commit is contained in:
parent
e2f944c6d2
commit
7b6cde592b
6
reg3.cpp
6
reg3.cpp
@ -420,7 +420,7 @@ EX namespace reg3 {
|
||||
for(int i=0; i<currfp_n(); i++) {
|
||||
bool ok = true;
|
||||
for(auto o: plane_indices) {
|
||||
int j = currfp_gmul(i, o * f->local_group) / f->local_group;
|
||||
int j = f->gmul(i, o * f->local_group) / f->local_group;
|
||||
if(plane_indices.count(j)) ok = false;
|
||||
forCellEx(c1, allcells()[j]) if(plane_indices.count(c1->master->fieldval)) ok = false;
|
||||
}
|
||||
@ -433,7 +433,7 @@ EX namespace reg3 {
|
||||
int pw = 1;
|
||||
int at = i;
|
||||
while(true) {
|
||||
at = currfp_gmul(at, i);
|
||||
at = f->gmul(at, i);
|
||||
if(!nwi.count(at)) break;
|
||||
pw++;
|
||||
}
|
||||
@ -446,7 +446,7 @@ EX namespace reg3 {
|
||||
int j = currfp_gmul(u, o * f->local_group) / f->local_group;
|
||||
allcells()[j]->master->zebraval |= 2;
|
||||
}
|
||||
u = currfp_gmul(u, gpow);
|
||||
u = f->gmul(u, gpow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user