From a752d1fce1bf14ba891471a7dd46fa4138fe100f Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 13 Dec 2014 20:33:05 +1100 Subject: [PATCH] Fix !(x == y) in pathlib --- qcsrc/server/pathlib.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/pathlib.qc b/qcsrc/server/pathlib.qc index 3799c755d..d1f5fd358 100644 --- a/qcsrc/server/pathlib.qc +++ b/qcsrc/server/pathlib.qc @@ -149,7 +149,7 @@ float floor_ok(vector point) case CONTENT_SKY: return 0; case CONTENT_EMPTY: - if (!(pointcontents(point - '0 0 1') == CONTENT_SOLID)) + if(pointcontents(point - '0 0 1') != CONTENT_SOLID) return 0; break; case CONTENT_WATER: @@ -226,7 +226,7 @@ vector pathlib_wateroutnode(vector start,vector end,float doedge) traceline(end + ('0 0 0.25' * pathlib_gridsize),end - ('0 0 1' * pathlib_gridsize),MOVE_WORLDONLY,self); end = trace_endpos; - if (!(pointcontents(end - '0 0 1') == CONTENT_SOLID)) + if(pointcontents(end - '0 0 1') != CONTENT_SOLID) return end; for(surface = start ; surface_z < (end_z + 32); ++surface_z) -- 2.39.2