1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-19 03:19:43 +00:00

PIU now works in the underlying map -- underlying geometry only is too fragile

This commit is contained in:
Zeno Rogue
2019-11-28 23:09:04 +01:00
parent 30329df05c
commit d63b14da5c
8 changed files with 19 additions and 31 deletions

View File

@@ -368,9 +368,7 @@ EX int fieldval_uniq(cell *c) {
if(experimental) return 0;
else if(hybri) {
auto c1 = hybrid::get_where(c).first;
int res;
hybrid::in_underlying_map([&] { res = fieldval_uniq(c1); });
return res;
return PIU ( fieldval_uniq(c1) );
}
else if(sphere) {
if(archimedean) return c->master->fiftyval;
@@ -403,9 +401,7 @@ EX int fieldval_uniq(cell *c) {
EX int fieldval_uniq_rand(cell *c, int randval) {
if(hybri) {
auto c1 = hybrid::get_where(c).first;
int res;
hybrid::in_underlying_map([&] { res = fieldval_uniq_rand(c1, randval); });
return res;
return PIU ( fieldval_uniq_rand(c1, randval) );
}
if(sphere || euclid || NONSTDVAR)
// we do not care in these cases