- separation of static and map-local event handlers into separate lists.

Having everything lumped together made this a maintenance hassle because it affected how the level has to be stored.
This hasn't been tested yet, so it may not work as intended!
This commit is contained in:
Christoph Oelckers 2019-02-02 16:43:11 +01:00
commit 66eb4e5048
29 changed files with 240 additions and 242 deletions

View file

@ -1232,26 +1232,26 @@ DEFINE_ACTION_FUNCTION_NATIVE(AActor, GetSpriteIndex, ZS_GetSpriteIndex)
static PClassActor *ZS_GetReplacement(PClassActor *c)
{
return c->GetReplacement();
return c->GetReplacement(currentVMLevel);
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, GetReplacement, ZS_GetReplacement)
{
PARAM_PROLOGUE;
PARAM_POINTER(c, PClassActor);
ACTION_RETURN_POINTER(c->GetReplacement());
ACTION_RETURN_POINTER(ZS_GetReplacement(c));
}
static PClassActor *ZS_GetReplacee(PClassActor *c)
{
return c->GetReplacee();
return c->GetReplacee(currentVMLevel);
}
DEFINE_ACTION_FUNCTION_NATIVE(AActor, GetReplacee, ZS_GetReplacee)
{
PARAM_PROLOGUE;
PARAM_POINTER(c, PClassActor);
ACTION_RETURN_POINTER(c->GetReplacee());
ACTION_RETURN_POINTER(ZS_GetReplacee(c));
}
static void DrawSplash(AActor *self, int count, double angle, int kind)