mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-24 10:08:52 +00:00
small tweak
This commit is contained in:
parent
194865deb4
commit
9cdb6d7028
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue