- Adjust a few setForcedSyncInput() calls.

This commit is contained in:
Mitchell Richters 2023-03-23 16:34:07 +11:00
parent fa5490b834
commit 183ad0c61c
3 changed files with 13 additions and 14 deletions

View file

@ -2730,6 +2730,12 @@ void processinput_d(int snum)
checklook(snum,actions);
p->Angles.doViewYaw(&p->sync);
if (p->centeringView())
{
p->sync.horz = 0;
setForcedSyncInput();
}
if (p->on_crane != nullptr)
{
setForcedSyncInput();
@ -2763,12 +2769,6 @@ void processinput_d(int snum)
p->psectlotag = psectlotag;
if (p->centeringView())
{
p->sync.horz = 0;
setForcedSyncInput();
}
if (movementBlocked(p))
{
doubvel = 0;

View file

@ -3318,6 +3318,12 @@ void processinput_r(int snum)
p->Angles.doViewYaw(&p->sync);
p->apply_seasick();
if (p->centeringView())
{
p->sync.horz = 0;
setForcedSyncInput();
}
if (p->on_crane != nullptr)
{
setForcedSyncInput();
@ -3365,12 +3371,6 @@ void processinput_r(int snum)
p->psectlotag = psectlotag;
if (p->centeringView())
{
p->sync.horz = 0;
setForcedSyncInput();
}
if (movementBlocked(p))
{
doubvel = 0;

View file

@ -2630,7 +2630,7 @@ void DoPlayerMoveVehicle(PLAYER* pp)
pp->setcursector(pp->sop->op_main_sector); // for speed
double floordist = abs(zz - pp->sop->floor_loz);
setForcedSyncInput();
if (RectClip)
{
@ -2684,7 +2684,6 @@ void DoPlayerMoveVehicle(PLAYER* pp)
}
else
{
setForcedSyncInput();
DoPlayerTurnVehicle(pp, zz, floordist);
auto save_cstat = plActor->spr.cstat;