- fixed: Declaring a damage function must set regular damage to -1 to disable it.

This commit is contained in:
Christoph Oelckers 2016-11-07 23:22:00 +01:00
parent cf9cdeb480
commit aac931192b

View file

@ -1768,6 +1768,7 @@ void ZCCCompiler::ProcessDefaultProperty(PClassActor *cls, ZCC_PropertyStmt *pro
{
auto x = ConvertNode(prop->Values);
CreateDamageFunction(cls, (AActor *)bag.Info->Defaults, x, false);
((AActor *)bag.Info->Defaults)->DamageVal = -1;
return;
}