1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

yet another fix. rhombic not work

This commit is contained in:
Zeno Rogue 2019-04-16 03:34:45 +02:00
parent 1cc26a7337
commit 40a28b6f08

View File

@ -654,7 +654,8 @@ namespace euclid3 {
transmatrix warppush(coord dif) {
auto v = getcoord(dif);
for(int i: {0, 1})
v[i] = gmod(v[i] + T0[i][i] / 2, T0[i][i]) - T0[i][i] / 2;
if(T0[i][i])
v[i] = gmod(v[i] + T0[i][i] / 2, T0[i][i]) - T0[i][i] / 2;
return eupush3(v[0], v[1], v[2]);
}