1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

fixed fieldval_uniq on torus -- affects Blizzard/Volcano/Ruined

This commit is contained in:
Zeno Rogue 2018-01-29 16:29:13 +01:00
parent 1d5259c074
commit 561369ce11

View File

@ -310,7 +310,8 @@ int fieldval_uniq(cell *c) {
return decodeId(c->master);
}
else if(euclid) {
return torusconfig::vec_to_id(cell_to_vec(c));
auto p = cell_to_pair(c);
return gmod(p.first * torusconfig::dx + p.second * torusconfig::dy, torusconfig::qty);
}
if(ctof(c)) return c->master->fieldval/S7;
else {