mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- Always clear bEvilGrin after checking it in FMugShot::UpdateState(). If
it's not an appropriate time to show the grin when the flag is set, it shouldn't be saved until later.
This commit is contained in:
parent
5af1e6f734
commit
e845b292c2
1 changed files with 1 additions and 4 deletions
|
@ -352,11 +352,8 @@ int FMugShot::UpdateState(player_t *player, StateFlags stateflags)
|
|||
SetState("grin", false);
|
||||
return 0;
|
||||
}
|
||||
else if (CurrentState == NULL)
|
||||
{
|
||||
bEvilGrin = false;
|
||||
}
|
||||
}
|
||||
bEvilGrin = false;
|
||||
|
||||
bool ouch = (!st_oldouch && FaceHealth - player->health > ST_MUCHPAIN) || (st_oldouch && player->health - FaceHealth > ST_MUCHPAIN);
|
||||
if (player->damagecount &&
|
||||
|
|
Loading…
Reference in a new issue