1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

inverse ddspin back to iddspin

This commit is contained in:
Zeno Rogue 2019-11-14 19:34:09 +01:00
parent 012d833f50
commit 234677c5eb

View File

@ -1477,7 +1477,7 @@ EX void resetview() {
NLP = Id; NLP = Id;
if(cwt.at) { if(cwt.at) {
centerover = cwt.at; centerover = cwt.at;
View = inverse(ddspin(cwt.at, cwt.spin)); View = iddspin(cwt.at, cwt.spin);
if(cwt.mirrored) View = Mirror * View; if(cwt.mirrored) View = Mirror * View;
if(GDIM == 2) View = spin(M_PI + vid.fixed_facing_dir * degree) * View; if(GDIM == 2) View = spin(M_PI + vid.fixed_facing_dir * degree) * View;
if(GDIM == 3 && !prod) View = cspin(0, 2, M_PI/2) * View; if(GDIM == 3 && !prod) View = cspin(0, 2, M_PI/2) * View;