mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed fieldval_uniq on torus -- affects Blizzard/Volcano/Ruined
This commit is contained in:
parent
1d5259c074
commit
561369ce11
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user