mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- fixed: player_t::Uncrouch should only reset the view height if the player is actually crouched.
This commit is contained in:
parent
c3cc98b5f3
commit
8068fca601
1 changed files with 9 additions and 6 deletions
|
@ -487,12 +487,15 @@ public:
|
||||||
|
|
||||||
void Uncrouch()
|
void Uncrouch()
|
||||||
{
|
{
|
||||||
crouchfactor = FRACUNIT;
|
if (crouchfactor != FRACUNIT)
|
||||||
crouchoffset = 0;
|
{
|
||||||
crouchdir = 0;
|
crouchfactor = FRACUNIT;
|
||||||
crouching = 0;
|
crouchoffset = 0;
|
||||||
crouchviewdelta = 0;
|
crouchdir = 0;
|
||||||
viewheight = mo->ViewHeight;
|
crouching = 0;
|
||||||
|
crouchviewdelta = 0;
|
||||||
|
viewheight = mo->ViewHeight;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CanCrouch() const
|
bool CanCrouch() const
|
||||||
|
|
Loading…
Reference in a new issue