- rename 'FlipLine' to 'FlipLineVertexes' to clarify what it does

- add function 'FlipLineCompletely' which calls both 'FlipLineVertexes' and 'FlipLineSideRefs'
This commit is contained in:
Rachael Alexanderson 2019-11-24 06:39:24 -05:00 committed by drfrag
parent d7542a8cd9
commit bbe64ac8c6

View file

@ -50,13 +50,19 @@ class LevelPostProcessor native play
protected native void SetLineSectorRef(uint line, uint side, uint sector);
protected native Actor GetDefaultActor(Name actorclass);
protected void FlipLine(uint Line)
protected void FlipLineVertexes(uint Line)
{
uint v1 = level.lines[Line].v1.Index();
uint v2 = level.lines[Line].v2.Index();
SetLineVertexes(Line, v2, v1);
}
protected void FlipLineCompletely(uint Line)
{
FlipLineVertexes(Line);
FlipLineSideRefs(Line);
}
protected void SetWallTexture(int line, int side, int texpart, String texture)
{
SetWallTextureID(line, side, texpart, TexMan.CheckForTexture(texture, TexMan.Type_Wall));