X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fpathlib%2Futility.qc;h=7a0aec8652ed0ae8f32b2594da45ad49459a6165;hp=0a5ea42b1c22e7e996665ee98238dd55a6eb3307;hb=31bf64ba7821ebb5c0aba8a154472810074ed11e;hpb=14d52331c099f8ad672f5ab28ada4dc50243230c diff --git a/qcsrc/server/pathlib/utility.qc b/qcsrc/server/pathlib/utility.qc index 0a5ea42b1..7a0aec865 100644 --- a/qcsrc/server/pathlib/utility.qc +++ b/qcsrc/server/pathlib/utility.qc @@ -94,25 +94,25 @@ float tile_check_cross(vector where) // forward-right p = where + f + r; traceline(p + tile_check_up, p - tile_check_down, MOVE_WORLDONLY, self); - if not (location_isok(trace_endpos, 1, 0)) + if (!location_isok(trace_endpos, 1, 0)) return 0; // Forward-left p = where + f - r; traceline(p + tile_check_up, p - tile_check_down, MOVE_WORLDONLY, self); - if not (location_isok(trace_endpos, 1, 0)) + if (!location_isok(trace_endpos, 1, 0)) return 0; // Back-right p = where - f + r; traceline(p + tile_check_up, p - tile_check_down, MOVE_WORLDONLY, self); - if not (location_isok(trace_endpos, 1 ,0)) + if (!location_isok(trace_endpos, 1 ,0)) return 0; //Back-left p = where - f - r; traceline(p + tile_check_up, p - tile_check_down, MOVE_WORLDONLY, self); - if not (location_isok(trace_endpos, 1, 0)) + if (!location_isok(trace_endpos, 1, 0)) return 0; return 1; @@ -128,26 +128,26 @@ float tile_check_plus(vector where) // forward p = where + f; traceline(p+tile_check_up,p-tile_check_down,MOVE_WORLDONLY,self); - if not (location_isok(trace_endpos,1,0)) + if (!location_isok(trace_endpos,1,0)) return 0; //left p = where - r; traceline(p+tile_check_up,p-tile_check_down,MOVE_WORLDONLY,self); - if not (location_isok(trace_endpos,1,0)) + if (!location_isok(trace_endpos,1,0)) return 0; // Right p = where + r; traceline(p+tile_check_up,p-tile_check_down,MOVE_WORLDONLY,self); - if not (location_isok(trace_endpos,1,0)) + if (!location_isok(trace_endpos,1,0)) return 0; //Back p = where - f; traceline(p+tile_check_up,p-tile_check_down,MOVE_WORLDONLY,self); - if not (location_isok(trace_endpos,1,0)) + if (!location_isok(trace_endpos,1,0)) return 0; return 1;