small tweak

This commit is contained in:
Simon 2020-03-10 00:09:25 +00:00
parent 194865deb4
commit 9cdb6d7028
2 changed files with 2 additions and 2 deletions

View file

@ -738,7 +738,7 @@ void G_BuildTiccmd (ticcmd_t *cmd)
float dummy=0;
VR_GetMove(&joyforward, &joyside, &dummy, &dummy, &dummy, &dummy, &dummy, &dummy);
side += joyint(sidemove[speed] * joyside);
side += joyint(sidemove[speed] * -joyside);
forward += joyint(joyforward * forwardmove[speed]);
cmd->ucmd.pitch = LocalViewPitch >> 16;

View file

@ -436,7 +436,7 @@ namespace s3d
VR_GetMove(&dummy, &dummy, &hmd_forward, &hmd_side, &dummy, &dummy, &dummy, &dummy);
auto vel = player->mo->Vel;
player->mo->Vel = DVector3((DVector2(hmd_forward, hmd_side) * vr_vunits_per_meter), 0);
player->mo->Vel = DVector3((DVector2(hmd_forward, -hmd_side) * vr_vunits_per_meter), 0);
bool wasOnGround = player->mo->Z() <= player->mo->floorz;
double oldZ = player->mo->Z();
P_XYMovement(player->mo, DVector2(0, 0));