mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-29 19:40:35 +00:00
product:: fixed windmap crash on Goldberg
This commit is contained in:
parent
d27f628527
commit
31baf32f50
@ -3389,7 +3389,7 @@ EX namespace windmap {
|
|||||||
// cw.spin = 0;
|
// cw.spin = 0;
|
||||||
neighbors.emplace_back();
|
neighbors.emplace_back();
|
||||||
auto &v = neighbors.back();
|
auto &v = neighbors.back();
|
||||||
if(NONSTDVAR && !sphere && !archimedean)
|
if(NONSTDVAR && !sphere && !archimedean && !prod)
|
||||||
for(int l=0; l<S7; l++) {
|
for(int l=0; l<S7; l++) {
|
||||||
v.push_back(getId(cw + cth + l + wstep + cth));
|
v.push_back(getId(cw + cth + l + wstep + cth));
|
||||||
}
|
}
|
||||||
|
@ -372,7 +372,12 @@ EX pair<int, bool> fieldval(cell *c) {
|
|||||||
|
|
||||||
EX int fieldval_uniq(cell *c) {
|
EX int fieldval_uniq(cell *c) {
|
||||||
if(experimental) return 0;
|
if(experimental) return 0;
|
||||||
else if(prod) { auto c1 = product::get_where(c).first; return PIU(fieldval_uniq(c1)); }
|
else if(prod) {
|
||||||
|
auto c1 = product::get_where(c).first;
|
||||||
|
int res;
|
||||||
|
product::in_underlying_map([&] { res = fieldval_uniq(c1); });
|
||||||
|
return res;
|
||||||
|
}
|
||||||
else if(sphere) {
|
else if(sphere) {
|
||||||
if(archimedean) return c->master->fiftyval;
|
if(archimedean) return c->master->fiftyval;
|
||||||
#if CAP_IRR
|
#if CAP_IRR
|
||||||
|
Loading…
Reference in New Issue
Block a user