1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +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
if(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(GDIM == 2) View = spin(M_PI + vid.fixed_facing_dir * degree) * View;
else View = cspin(2, 0, M_PI/2) * View;
}
else if(currentmap) {
centerover = currentmap->gamestart();