mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +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)
|
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)
|
if (player)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue