- made WoundHealth modifiable to allow more control over the wound state.

This commit is contained in:
Christoph Oelckers 2017-02-28 12:56:35 +01:00
commit d5250d6b9f
7 changed files with 7 additions and 7 deletions

View file

@ -1536,7 +1536,7 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
woundstate = target->FindState(NAME_Wound, mod);
if (woundstate != NULL)
{
int woundhealth = target->GetClass()->WoundHealth;
int woundhealth = target->WoundHealth;
if (target->health <= woundhealth)
{