- exported Powerup.InitEffect and EndEffect to scripting.

This commit is contained in:
Christoph Oelckers 2016-12-30 23:32:43 +01:00
commit fe0f19e1e0
4 changed files with 55 additions and 9 deletions

View file

@ -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;
}