- 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

@ -608,8 +608,7 @@ DEFINE_PROPERTY(gibhealth, I, Actor)
DEFINE_PROPERTY(woundhealth, I, Actor)
{
PROP_INT_PARM(id, 0);
assert(info->IsKindOf(RUNTIME_CLASS(PClassActor)));
static_cast<PClassActor *>(info)->WoundHealth = id;
defaults->WoundHealth = id;
}
//==========================================================================