From: Mario Date: Sat, 13 Dec 2014 09:33:05 +0000 (+1100) Subject: Fix !(x == y) in pathlib X-Git-Tag: xonotic-v0.8.0~98 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a752d1fce1bf14ba891471a7dd46fa4138fe100f;p=xonotic%2Fxonotic-data.pk3dir.git Fix !(x == y) in pathlib --- 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)