From aac931192bebfb7e6624ec59c7f29db53619fc93 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 7 Nov 2016 23:22:00 +0100 Subject: [PATCH] - fixed: Declaring a damage function must set regular damage to -1 to disable it. --- src/scripting/zscript/zcc_compile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 981dcbc2a..41c3cde34 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -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; }