1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-29 08:33:25 +00:00

fixed a potential crash when calling fieldval in some geometries

This commit is contained in:
Zeno Rogue 2020-09-15 19:20:49 +02:00
parent 2e47adef1c
commit 0e20afe918
2 changed files with 2 additions and 2 deletions

View File

@ -1330,7 +1330,7 @@ EX vector<int> reverse_directions(heptagon *c, int dir) {
} }
EX bool standard_tiling() { EX bool standard_tiling() {
return !arcm::in() && !kite::in() && !bt::in() && !arb::in(); return !arcm::in() && !kite::in() && !bt::in() && !arb::in() && !nonisotropic && !hybri;
} }
EX int valence() { EX int valence() {

View File

@ -1180,7 +1180,7 @@ EX namespace patterns {
if(euclid) if(euclid)
// use the torus ID // use the torus ID
si.id = fieldpattern::fieldval_uniq(c); si.id = fieldpattern::fieldval_uniq(c);
else if(PURE && !arcm::in()) else if(PURE && standard_tiling())
// use the actual field codes // use the actual field codes
si.id = fieldpattern::fieldval(c).first; si.id = fieldpattern::fieldval(c).first;
else else