mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-23 15:36:59 +00:00
fixed possible crash in iddspin
This commit is contained in:
parent
86967c1ee0
commit
599346f436
@ -422,7 +422,8 @@ EX transmatrix cellrelmatrix(cell *c, int i) {
|
|||||||
double d = cellgfxdist(c, i);
|
double d = cellgfxdist(c, i);
|
||||||
transmatrix T = ddspin(c, i) * xpush(d);
|
transmatrix T = ddspin(c, i) * xpush(d);
|
||||||
if(c->c.mirror(i)) T = T * Mirror;
|
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;
|
return T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user