From 0584ecf65e04bbae24619d713ca665775c9525c7 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 25 Dec 2018 16:27:33 +0200 Subject: [PATCH] - declared Actor's Morph() and UnMorph() functions virtual They are expected to be virtual on C++ side --- wadsrc/static/zscript/shared/morph.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/zscript/shared/morph.txt b/wadsrc/static/zscript/shared/morph.txt index 3a1662915..8aa33926e 100644 --- a/wadsrc/static/zscript/shared/morph.txt +++ b/wadsrc/static/zscript/shared/morph.txt @@ -35,7 +35,7 @@ extend class Actor // //=========================================================================== - bool Morph(Actor activator, class playerclass, class monsterclass, int duration = 0, int style = 0, class morphflash = null, classunmorphflash = null) + virtual bool Morph(Actor activator, class playerclass, class monsterclass, int duration = 0, int style = 0, class morphflash = null, classunmorphflash = null) { if (player != null && player.mo != null && playerclass != null) { @@ -73,7 +73,7 @@ extend class Actor // //=========================================================================== - bool UnMorph(Actor activator, int flags, bool force) + virtual bool UnMorph(Actor activator, int flags, bool force) { if (player) {