- exported Powerup.InitEffect and EndEffect to scripting.
This commit is contained in:
parent
5e34bad03b
commit
fe0f19e1e0
4 changed files with 55 additions and 9 deletions
|
|
@ -585,7 +585,7 @@ void EndAllPowerupEffects(AInventory *item)
|
|||
{
|
||||
if (item->IsKindOf(RUNTIME_CLASS(APowerup)))
|
||||
{
|
||||
static_cast<APowerup *>(item)->EndEffect();
|
||||
static_cast<APowerup *>(item)->CallEndEffect();
|
||||
}
|
||||
item = item->Inventory;
|
||||
}
|
||||
|
|
@ -605,7 +605,7 @@ void InitAllPowerupEffects(AInventory *item)
|
|||
{
|
||||
if (item->IsKindOf(RUNTIME_CLASS(APowerup)))
|
||||
{
|
||||
static_cast<APowerup *>(item)->InitEffect();
|
||||
static_cast<APowerup *>(item)->CallInitEffect();
|
||||
}
|
||||
item = item->Inventory;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue