actually fix ouch face again (#2080)

This commit is contained in:
Fabian Greffrath 2024-12-06 13:47:16 +01:00 committed by GitHub
parent 087e113356
commit 0fd910107c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -619,7 +619,7 @@ static void UpdateFace(sbe_face_t *face, player_t *player)
boolean right = false; boolean right = false;
// [FG] show "Ouch Face" as intended // [FG] show "Ouch Face" as intended
if (player->health - face->oldhealth > ST_MUCHPAIN) if (face->oldhealth - player->health > ST_MUCHPAIN)
{ {
// [FG] raise "Ouch Face" priority // [FG] raise "Ouch Face" priority
priority = 8; priority = 8;
@ -672,7 +672,7 @@ static void UpdateFace(sbe_face_t *face, player_t *player)
// getting hurt because of your own damn stupidity // getting hurt because of your own damn stupidity
if (player->damagecount) if (player->damagecount)
{ {
if (player->health - face->oldhealth > ST_MUCHPAIN) if (face->oldhealth - player->health > ST_MUCHPAIN)
{ {
priority = 7; priority = 7;
face->facecount = ST_TURNCOUNT; face->facecount = ST_TURNCOUNT;