mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- add 'FlipLine' to 'LevelPostProcessor'
(patch by Rachael)
This commit is contained in:
parent
05f36cafc8
commit
44aeb56932
2 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue