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

fixed possible crash in iddspin

This commit is contained in:
Zeno Rogue 2019-08-26 13:43:18 +02:00
parent 86967c1ee0
commit 599346f436

View File

@ -422,7 +422,8 @@ EX transmatrix cellrelmatrix(cell *c, int i) {
double d = cellgfxdist(c, i);
transmatrix T = ddspin(c, i) * xpush(d);
if(c->c.mirror(i)) T = T * Mirror;
T = T * iddspin(c->move(i), c->c.spin(i), M_PI);
cell *c1 = c->cmove(i);
T = T * iddspin(c1, c->c.spin(i), M_PI);
return T;
}