1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-30 09:03:17 +00:00

correct resetview facing in 3D/nonorientable

This commit is contained in:
Zeno Rogue 2019-11-14 17:08:00 +01:00
parent 5ff7266877
commit 9a35342625

View File

@ -1476,8 +1476,10 @@ EX void resetview() {
// EUCLIDEAN // EUCLIDEAN
if(cwt.at) { if(cwt.at) {
centerover = cwt.at; centerover = cwt.at;
View = iddspin(cwt.at, cwt.spin, M_PI + vid.fixed_facing_dir * degree); 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;
else View = cspin(2, 0, M_PI/2) * View;
} }
else if(currentmap) { else if(currentmap) {
centerover = currentmap->gamestart(); centerover = currentmap->gamestart();