- add 'FlipLine' to 'LevelPostProcessor'

(patch by Rachael)
This commit is contained in:
drfrag 2019-11-13 17:56:36 +01:00
parent 05f36cafc8
commit 44aeb56932
2 changed files with 20 additions and 0 deletions

View file

@ -730,6 +730,25 @@ DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetVertex)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, FlipLine)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);
PARAM_UINT(lineidx);
if (lineidx < level.lines.Size())
{
line_t *line = &level.lines[lineidx];
vertex_t *v1 = line->v1;
vertex_t *v2 = line->v2;
line->v1 = v2;
line->v2 = v1;
}
ForceNodeBuild = true;
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelPostProcessor, SetLineSectorRef)
{
PARAM_SELF_PROLOGUE(DLevelPostProcessor);

View file

@ -45,6 +45,7 @@ class LevelPostProcessor native play
protected native void SetThingStringArgument(uint thing, Name value);
protected native void SetVertex(uint vertex, double x, double y);
protected native void FlipLine(uint Line);
protected native void SetLineSectorRef(uint line, uint side, uint sector);
protected native Actor GetDefaultActor(Name actorclass);