1
0
Fork 0

Fix off-by-one problem in new ground intersection code

This commit is contained in:
Tim Moore 2009-02-15 01:55:21 +01:00
parent d5a893589c
commit c59d30febb

View file

@ -382,7 +382,7 @@ void FGGroundCache::getWireIntersectorResults(WireIntersector* wireInt,
// Trick to get the ends in the right order. // Trick to get the ends in the right order.
// Use the x axis in the original coordinate system. Choose the // Use the x axis in the original coordinate system. Choose the
// most negative x-axis as the one pointing forward // most negative x-axis as the one pointing forward
if (linePrim.vertices[1][0] > linePrim.vertices[2][0]) { if (linePrim.vertices[0][0] > linePrim.vertices[1][0]) {
cat.start = gv1; cat.start = gv1;
cat.end = gv2; cat.end = gv2;
} else { } else {