Skip to content

Commit

Permalink
- rename 'FlipLine' to 'FlipLineVertexes' to clarify what it does
Browse files Browse the repository at this point in the history
- add function 'FlipLineCompletely' which calls both 'FlipLineVertexes' and 'FlipLineSideRefs'
  • Loading branch information
madame-rachelle committed Nov 24, 2019
1 parent db1359f commit 2489ea2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wadsrc/static/zscript/level_postprocessor.zs
Expand Up @@ -52,13 +52,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));
Expand Down

0 comments on commit 2489ea2

Please sign in to comment.