mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
- declared Actor's Morph() and UnMorph() functions virtual
They are expected to be virtual on C++ side
This commit is contained in:
parent
dc05220abc
commit
0584ecf65e
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ extend class Actor
|
|||
//
|
||||
//===========================================================================
|
||||
|
||||
bool Morph(Actor activator, class<PlayerPawn> playerclass, class<MorphedMonster> monsterclass, int duration = 0, int style = 0, class<Actor> morphflash = null, class<Actor>unmorphflash = null)
|
||||
virtual bool Morph(Actor activator, class<PlayerPawn> playerclass, class<MorphedMonster> monsterclass, int duration = 0, int style = 0, class<Actor> morphflash = null, class<Actor>unmorphflash = 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue