Mercurial > hg > forks > yadex
changeset 97:adfc24b6a7b7
More cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Oct 2014 01:47:27 +0300 |
parents | 091ec1d89876 |
children | 18d7e613b075 |
files | src/objects.cc |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/objects.cc Mon Oct 06 01:47:10 2014 +0300 +++ b/src/objects.cc Mon Oct 06 01:47:27 2014 +0300 @@ -676,8 +676,7 @@ bestdist = 32767; bestmdist = 32767; for (ld2 = 0; ld2 < NumLineDefs; ld2++) - if (ld2 != ld1 && ((Vertices[LineDefs[ld2].start].x > x1) - != (Vertices[LineDefs[ld2].end].x > x1))) + if (ld2 != ld1 && (Vertices[LineDefs[ld2].start].x > x1) != (Vertices[LineDefs[ld2].end].x > x1)) { GetLDCoords(ld2, &x2, &y2, &dx2, &dy2); dist = y2 + (int) ((x1 - x2) * dy2 / dx2); @@ -695,8 +694,7 @@ bestdist = -32767; bestmdist = -32767; for (ld2 = 0; ld2 < NumLineDefs; ld2++) - if (ld2 != ld1 && ((Vertices[LineDefs[ld2].start].x > x1) - != (Vertices[LineDefs[ld2].end].x > x1))) + if (ld2 != ld1 && (Vertices[LineDefs[ld2].start].x > x1) != (Vertices[LineDefs[ld2].end].x > x1)) { GetLDCoords(ld2, &x2, &y2, &dx2, &dy2); dist = y2 + (int) ((x1 - x2) * dy2 / dx2); @@ -717,8 +715,7 @@ bestdist = 32767; bestmdist = 32767; for (ld2 = 0; ld2 < NumLineDefs; ld2++) - if (ld2 != ld1 && ((Vertices[LineDefs[ld2].start].y > y1) - != (Vertices[LineDefs[ld2].end].y > y1))) + if (ld2 != ld1 && (Vertices[LineDefs[ld2].start].y > y1) != (Vertices[LineDefs[ld2].end].y > y1)) { GetLDCoords(ld2, &x2, &y2, &dx2, &dy2); dist = x2 + (int) ((y1 - y2) * dx2 / dy2); @@ -736,8 +733,7 @@ bestdist = -32767; bestmdist = -32767; for (ld2 = 0; ld2 < NumLineDefs; ld2++) - if (ld2 != ld1 && ((Vertices[LineDefs[ld2].start].y > y1) - != (Vertices[LineDefs[ld2].end].y > y1))) + if (ld2 != ld1 && (Vertices[LineDefs[ld2].start].y > y1) != (Vertices[LineDefs[ld2].end].y > y1)) { GetLDCoords(ld2, &x2, &y2, &dx2, &dy2); dist = x2 + (int) ((y1 - y2) * dx2 / dy2);