1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 12:57:57 +00:00

fake curvature

This commit is contained in:
Zeno Rogue
2020-05-15 11:46:26 +02:00
parent a5a49ce5c9
commit 1b96658a05
15 changed files with 434 additions and 11 deletions

View File

@@ -1085,6 +1085,7 @@ EX bool quotient_field_changed;
#define STR(x) string(x, sizeof(x))
EX struct fpattern& getcurrfp() {
if(fake::in()) return *FPIU(&getcurrfp());
if(geometry == gFieldQuotient && quotient_field_changed)
return current_quotient_field;
if(geometry == gSpace535) {
@@ -1156,6 +1157,7 @@ EX struct fpattern& getcurrfp() {
DEBB(DF_FIELD, ("set prime = ", fp.Prime));
return fp;
}
if(!hyperbolic) return fp_invalid;
if(S7 == 8 && S3 == 3 && !bt::in()) {
static fpattern fp(17);
return fp;