lonestar

0x10c-inspired space game based on the DCPU-16
git clone git://squid-tech.com/lonestar.git
Log | Files | Refs | README

commit 840a9edfb2c182d0c2a963cc71c111d2a3b98db0
parent de6709a0aea2e91b07cd7304611253467c83eec1
Author: Josh Moore <jxm5210@rit.edu>
Date:   Tue, 26 Nov 2019 18:20:47 -0500

Remove unnecessary comments

Diffstat:
Msrc/LoneStar/Assets/Scripts/ShipLoader.cs | 17-----------------
1 file changed, 0 insertions(+), 17 deletions(-)

diff --git a/src/LoneStar/Assets/Scripts/ShipLoader.cs b/src/LoneStar/Assets/Scripts/ShipLoader.cs @@ -101,27 +101,11 @@ public class ShipLoader } // return true if check lies within the polygon defined by points - //\TODO FIX THIS - doesn't handle straight lines at all bool containsPoint(List<Vector3> points, Vector3 p) { // return true if the point is a point on the polygon if (points.Contains(p)) return true; - /* - // trace a ray to zero - // if the ray intersects the polygon an even number of times, the point is outside - // if the ray intersects the polygon an odd number of times, the point is inside - int intersections = 0; - for (float x = 0; x <= check.x; x += SHIP_SCALE) - { - if (points.Contains(new Vector3(x, 0, check.z))) - { - intersections++; - } - } - - return !(intersections % 2 == 0);*/ - int j = points.Count - 1; bool inside = false; for (int i = 0; i < points.Count; j = i++) @@ -207,7 +191,6 @@ public class ShipLoader } // generate a list of vertices corresponding to the floor/ceiling mesh - //\TODO fill poly correctly List<Vector3> generatedVerts = new List<Vector3>(); for (int y = 0; y < 24; y++) {