Revert "Remove ZPolyobject due to licensing concerns."
This reverts commit f134375f7e.
Library is now MIT licensed and can be included.
This commit is contained in:
parent
564c99782a
commit
0fbbb91b8e
15 changed files with 566 additions and 20 deletions
|
|
@ -1918,7 +1918,7 @@ Class SWWMUtility
|
|||
}
|
||||
|
||||
// iterate through polyobjects and see if this line is part of one (returning which, if any)
|
||||
/*static bool IsPolyLine( Line l, out swwm_PolyobjectHandle o )
|
||||
static bool IsPolyLine( Line l, out swwm_PolyobjectHandle o )
|
||||
{
|
||||
let pi = swwm_PolyobjectIterator.Create();
|
||||
swwm_PolyobjectHandle p;
|
||||
|
|
@ -1930,12 +1930,12 @@ Class SWWMUtility
|
|||
}
|
||||
o = null;
|
||||
return false;
|
||||
}*/
|
||||
}
|
||||
|
||||
// checks if the specified world coordinate is inside the polyobject
|
||||
// this check is very naive but it should handle most "normal" shapes
|
||||
// (yeah, sorry if you somehow want to play this mod with lilith.pk3)
|
||||
/*static bool PointInPolyobj( Vector2 p, swwm_PolyobjectHandle o )
|
||||
static bool PointInPolyobj( Vector2 p, swwm_PolyobjectHandle o )
|
||||
{
|
||||
// first pass, find which vertex out of all lines is closest
|
||||
Vertex v = o.StartLine.v1;
|
||||
|
|
@ -1971,7 +1971,7 @@ Class SWWMUtility
|
|||
}
|
||||
// is the point behind both lines?
|
||||
return (PointOnLineSide(p,a) && PointOnLineSide(p,b));
|
||||
}*/
|
||||
}
|
||||
|
||||
// full reset of inventory (excluding collectibles, and optionally resetting the score)
|
||||
static play void WipeInventory( Actor mo, bool resetscore = false, bool allplayers = false )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue