mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-02 15:02:17 +00:00
- Adjust a few setForcedSyncInput()
calls.
This commit is contained in:
parent
fa5490b834
commit
183ad0c61c
3 changed files with 13 additions and 14 deletions
source/games
|
@ -2730,6 +2730,12 @@ void processinput_d(int snum)
|
||||||
checklook(snum,actions);
|
checklook(snum,actions);
|
||||||
p->Angles.doViewYaw(&p->sync);
|
p->Angles.doViewYaw(&p->sync);
|
||||||
|
|
||||||
|
if (p->centeringView())
|
||||||
|
{
|
||||||
|
p->sync.horz = 0;
|
||||||
|
setForcedSyncInput();
|
||||||
|
}
|
||||||
|
|
||||||
if (p->on_crane != nullptr)
|
if (p->on_crane != nullptr)
|
||||||
{
|
{
|
||||||
setForcedSyncInput();
|
setForcedSyncInput();
|
||||||
|
@ -2763,12 +2769,6 @@ void processinput_d(int snum)
|
||||||
|
|
||||||
p->psectlotag = psectlotag;
|
p->psectlotag = psectlotag;
|
||||||
|
|
||||||
if (p->centeringView())
|
|
||||||
{
|
|
||||||
p->sync.horz = 0;
|
|
||||||
setForcedSyncInput();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (movementBlocked(p))
|
if (movementBlocked(p))
|
||||||
{
|
{
|
||||||
doubvel = 0;
|
doubvel = 0;
|
||||||
|
|
|
@ -3318,6 +3318,12 @@ void processinput_r(int snum)
|
||||||
p->Angles.doViewYaw(&p->sync);
|
p->Angles.doViewYaw(&p->sync);
|
||||||
p->apply_seasick();
|
p->apply_seasick();
|
||||||
|
|
||||||
|
if (p->centeringView())
|
||||||
|
{
|
||||||
|
p->sync.horz = 0;
|
||||||
|
setForcedSyncInput();
|
||||||
|
}
|
||||||
|
|
||||||
if (p->on_crane != nullptr)
|
if (p->on_crane != nullptr)
|
||||||
{
|
{
|
||||||
setForcedSyncInput();
|
setForcedSyncInput();
|
||||||
|
@ -3365,12 +3371,6 @@ void processinput_r(int snum)
|
||||||
|
|
||||||
p->psectlotag = psectlotag;
|
p->psectlotag = psectlotag;
|
||||||
|
|
||||||
if (p->centeringView())
|
|
||||||
{
|
|
||||||
p->sync.horz = 0;
|
|
||||||
setForcedSyncInput();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (movementBlocked(p))
|
if (movementBlocked(p))
|
||||||
{
|
{
|
||||||
doubvel = 0;
|
doubvel = 0;
|
||||||
|
|
|
@ -2630,7 +2630,7 @@ void DoPlayerMoveVehicle(PLAYER* pp)
|
||||||
pp->setcursector(pp->sop->op_main_sector); // for speed
|
pp->setcursector(pp->sop->op_main_sector); // for speed
|
||||||
|
|
||||||
double floordist = abs(zz - pp->sop->floor_loz);
|
double floordist = abs(zz - pp->sop->floor_loz);
|
||||||
|
setForcedSyncInput();
|
||||||
|
|
||||||
if (RectClip)
|
if (RectClip)
|
||||||
{
|
{
|
||||||
|
@ -2684,7 +2684,6 @@ void DoPlayerMoveVehicle(PLAYER* pp)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setForcedSyncInput();
|
|
||||||
DoPlayerTurnVehicle(pp, zz, floordist);
|
DoPlayerTurnVehicle(pp, zz, floordist);
|
||||||
|
|
||||||
auto save_cstat = plActor->spr.cstat;
|
auto save_cstat = plActor->spr.cstat;
|
||||||
|
|
Loading…
Reference in a new issue