]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/pathlib.qc
Merge branch 'master' of ssh://gitlab.com/xonotic/xonotic-data.pk3dir into kickban...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / pathlib.qc
index 3799c755d4125a9505d63ae93f9d3f8d81a65666..d1f5fd35845803996429f922873b37fb7a254986 100644 (file)
@@ -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)