1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

Mirror Spirits now face the original player

This commit is contained in:
Zeno Rogue 2020-09-16 19:52:21 +02:00
parent 9b9e7ccaf2
commit f02170ba28

View File

@ -2807,8 +2807,9 @@ EX bool drawMonster(const shiftmatrix& Vparam, int ct, cell *c, color_t col, col
// other monsters face the player
if(!nospins) {
shiftmatrix& where = (c->monst == moMirrorSpirit && inmirrorcount) ? ocwtV : cwtV;
if(WDIM == 2 || prod) {
hyperpoint V0 = inverse_shift(Vs, tC0(cwtV));
hyperpoint V0 = inverse_shift(Vs, tC0(where));
ld z = 0;
if(prod) {
auto d = product_decompose(V0);
@ -2822,7 +2823,7 @@ EX bool drawMonster(const shiftmatrix& Vparam, int ct, cell *c, color_t col, col
}
}
else if(!sl2) {
hyperpoint V0 = inverse_shift(Vs, tC0(cwtV));
hyperpoint V0 = inverse_shift(Vs, tC0(where));
Vs = Vs * rspintox(V0);
// cwtV * rgpushxto0(inverse(cwtV) * tC0(Vs));
}