mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 12:32:13 +00:00
- Exhumed: Clear all input out upon restarting the player.
* Stale accumulation from the last round can apply on the next tic.
This commit is contained in:
parent
776c58c58a
commit
7d5ca901eb
1 changed files with 4 additions and 0 deletions
|
@ -298,6 +298,7 @@ void RestartPlayer(int nPlayer)
|
||||||
pPlayer->nAir = 100;
|
pPlayer->nAir = 100;
|
||||||
pPlayer->pPlayerGrenade = nullptr;
|
pPlayer->pPlayerGrenade = nullptr;
|
||||||
pPlayer->dVertPan = 0;
|
pPlayer->dVertPan = 0;
|
||||||
|
pPlayer->vel.Zero();
|
||||||
pPlayer->nThrust.Zero();
|
pPlayer->nThrust.Zero();
|
||||||
pPlayer->nDestVertPan = pPlayerActor->PrevAngles.Pitch = pPlayerActor->spr.Angles.Pitch = nullAngle;
|
pPlayer->nDestVertPan = pPlayerActor->PrevAngles.Pitch = pPlayerActor->spr.Angles.Pitch = nullAngle;
|
||||||
pPlayer->nBreathTimer = 90;
|
pPlayer->nBreathTimer = 90;
|
||||||
|
@ -335,6 +336,9 @@ void RestartPlayer(int nPlayer)
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildRa(nPlayer);
|
BuildRa(nPlayer);
|
||||||
|
|
||||||
|
// clear out all input before finishing here
|
||||||
|
inputState.ClearAllInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue