fixed a crash in some horospherical tessellations

This commit is contained in:
Zeno Rogue 2020-03-31 18:59:16 +02:00
parent 2588438052
commit cad1bccd1a
1 changed files with 5 additions and 5 deletions

View File

@ -1156,24 +1156,24 @@ EX struct fpattern& getcurrfp() {
DEBB(DF_FIELD, ("set prime = ", fp.Prime));
return fp;
}
if(S7 == 8 && S3 == 3) {
if(S7 == 8 && S3 == 3 && !bt::in()) {
static fpattern fp(17);
return fp;
}
if(S7 == 5 && S3 == 4) {
if(S7 == 5 && S3 == 4 && !bt::in()) {
static fpattern fp(11);
return fp;
}
if(S7 == 6 && S3 == 4) {
if(S7 == 6 && S3 == 4 && !bt::in()) {
static fpattern fp(13);
return fp;
}
if(S7 == 7 && S3 == 4) {
if(S7 == 7 && S3 == 4 && !bt::in()) {
static fpattern fp(13);
return fp;
}
if(sphere || euclid) return fp_invalid;
if(S7 == 7 && S3 == 3)
if(S7 == 7 && S3 == 3 && !bt::in())
return fp43;
return fp_invalid;
}