1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 09:30:35 +00:00

fixed a crash in perspective move

This commit is contained in:
Zeno Rogue 2020-12-30 15:22:37 +01:00
parent 4b3b7fead0
commit db46f247c5

2
vr.cpp
View File

@ -466,10 +466,12 @@ void move_according_to(vr::ETrackedControllerRole role, bool last, bool cur) {
if(id >= 0 && id < int(vr::k_unMaxTrackedDeviceCount)) {
hyperpoint h;
if(in_perspective_v()) {
if(1) {
E4;
transmatrix T = (hsm == eHeadset::none ? hmd_at : hmd_ref_at) * vrdata.pose_matrix[id] * sm;
vrhr::be_33(T);
h = T * point31(0, 0, -0.01);
}
if(last && !cur)
movevrdir(h);
else {