mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-02 14:04:30 +00:00
3D:: conformal::rotation is now used to get the initial rotation right in 3D
This commit is contained in:
1 parent
9eae663fe3
commit
d7d5f02a05
2 files changed
+5
-3
No files matched your search
+3
-1
@@ -391,6 +391,7 @@ void switch_always3() {
|
||||
if(rug::rugged) rug::close();
|
||||
if(dual::split(switch_fpp)) return;
|
||||
check_cgi(); cgi.require_basics();
|
||||
View = inverse(conformal::rotmatrix()) * View;
|
||||
if(!vid.always3) {
|
||||
vid.always3 = true;
|
||||
ld ms = min<ld>(cgi.scalefactor, 1);
|
||||
@@ -422,8 +423,9 @@ void switch_always3() {
|
||||
swapmatrix(View);
|
||||
callhooks(hooks_swapdim);
|
||||
}
|
||||
View = conformal::rotmatrix() * View;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user