1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-21 12:43:18 +00:00

fixed undefined behavior

This commit is contained in:
Zeno Rogue 2020-11-01 20:20:59 +01:00
parent 1425256ef4
commit 5dbb15edda

View File

@ -422,7 +422,7 @@ EX int fieldval_uniq(cell *c) {
}
else if(euc::in(2)) {
auto p = euc2_coordinates(c);
if(bounded) return p.first + (p.second << 16);
if(bounded) return p.first + p.second * (1 << 16);
return gmod(p.first - 22 * p.second, 3*127);
}
else if(euc::in(3)) {