- add 'flipline' function to levelcompatibility

# Conflicts:
#	src/maploader/compatibility.cpp
This commit is contained in:
Rachael Alexanderson 2019-08-14 05:34:58 -04:00 committed by drfrag
parent fd072db274
commit 1a85206983
2 changed files with 17 additions and 0 deletions

View file

@ -515,6 +515,22 @@ DEFINE_ACTION_FUNCTION(DLevelCompatibility, SetVertex)
return 0;
}
DEFINE_ACTION_FUNCTION(DLevelCompatibility, FlipLine)
{
PARAM_SELF_PROLOGUE(DLevelCompatibility);
PARAM_UINT(lineidx);
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(DLevelCompatibility, SetLineSectorRef)
{
PARAM_SELF_PROLOGUE(DLevelCompatibility);

View file

@ -1412,6 +1412,7 @@ class LevelCompatibility native play
protected native void SetThingFlags(int thing, int flags);
protected native void SetVertex(uint vertex, double x, double y);
protected native void SetLineSectorRef(uint line, uint side, uint sector);
protected native void FlipLine(uint Line);
protected native Actor GetDefaultActor(Name actorclass);
protected void SetWallTexture(int line, int side, int texpart, String texture)