monster_scientist: Don't do pain sound when we're already dead.

This commit is contained in:
Marco Cawthorne 2021-09-12 00:20:09 +02:00
parent d042bd0233
commit 724caae659
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -125,7 +125,8 @@ monster_scientist::Pain(void)
return;
}
Sound_Speak(this, "monster_scientist.pain");
if (style != MONSTER_DEAD)
Sound_Speak(this, "monster_scientist.pain");
frame = SCIA_FLINCH + floor(random(0, 6));
m_iFlags |= MONSTER_FEAR;