1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-15 11:45:48 +00:00

fix buggy prairie

This commit is contained in:
Zeno Rogue 2024-12-22 11:33:16 +01:00
parent ceb47c843a
commit 3092062312

View File

@ -1234,8 +1234,6 @@ void fpattern::findsubpath() {
} }
} }
fpattern *fp43;
EX void info() { EX void info() {
fpattern fp(0); fpattern fp(0);
int cases = 0, hard = 0; int cases = 0, hard = 0;
@ -1434,8 +1432,13 @@ EX struct fpattern& getcurrfp() {
} }
if(sphere || euclid) return fp_invalid; if(sphere || euclid) return fp_invalid;
if(S7 == 7 && S3 == 3 && !bt::in()) { if(S7 == 7 && S3 == 3 && !bt::in()) {
if(!fp43) fp43 = new fpattern(43); if(PURE) {
return *fp43; // we need another static because the prairie values have to be set differently in pure
static fpattern fp(43);
return fp;
}
static fpattern fp(43);
return fp;
} }
return fp_invalid; return fp_invalid;
} }