1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-07 02:10:14 +00:00

currfp returns fp_invalid when fp is not known, and does not use it

This commit is contained in:
Zeno Rogue
2018-11-30 14:39:23 +01:00
parent bf7bb61d35
commit f7db0feef0
4 changed files with 7 additions and 3 deletions

View File

@@ -355,6 +355,7 @@ int fieldval_uniq(cell *c) {
return gmod(p.first * torusconfig::dx + p.second * torusconfig::dy, torusconfig::qty);
}
else if(binarytiling || archimedean) return 0;
else if(&currfp == &fp_invalid) return 0;
else if(ctof(c) || NONSTDVAR) return c->master->fieldval/S7;
else {
int z = 0;