From 9a3534262593d4aa1b15448bf3d7234d08a7be88 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 14 Nov 2019 17:08:00 +0100 Subject: [PATCH] correct resetview facing in 3D/nonorientable --- hypgraph.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index e22f2671..f423e8a4 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -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();