changeset 100:535fb24283a4

Fix warnings.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 01:49:17 +0300
parents 9df6681725da
children 5e1cd8fe37f1
files src/objects.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/objects.cc	Mon Oct 06 01:48:17 2014 +0300
+++ b/src/objects.cc	Mon Oct 06 01:49:17 2014 +0300
@@ -160,10 +160,10 @@
                 {
                     const struct Vertex *v1 = Vertices + LineDefs[n].start;
                     const struct Vertex *v2 = Vertices + LineDefs[n].end;
-                    if (v1->x < mapx0 && v2->x < mapx0 ||
-                        v1->x > mapx1 && v2->x > mapx1 ||
-                        v1->y < mapy0 && v2->y < mapy0 ||
-                        v1->y > mapy1 && v2->y > mapy1)
+                    if ((v1->x < mapx0 && v2->x < mapx0) ||
+                        (v1->x > mapx1 && v2->x > mapx1) ||
+                        (v1->y < mapy0 && v2->y < mapy0) ||
+                        (v1->y > mapy1 && v2->y > mapy1))
                         continue;        // Off-screen
                     DrawMapLine(v1->x, v1->y, v2->x, v2->y);
                 }