From a343ce0ad217507040ef083c89b7e07a2b01f917 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 29 Dec 2011 15:38:33 +0100 Subject: [PATCH] remove an useless trace --- qcsrc/server/t_plats.qc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index ab121045b..608912054 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -2065,16 +2065,16 @@ void conveyor_think() other.flags &~= FL_ONGROUND; continue; } - tracebox(other.origin, other.mins, other.maxs, other.origin + self.movedir * (self.speed * sys_frametime), MOVE_NORMAL, other); - if(trace_fraction > 0) + if(other.flags & FL_CLIENT) // doing it via velocity has quite some advantages { - if(other.flags & FL_CLIENT) // doing it via velocity has quite some advantages - { - float f = 1 - frametime * autocvar_sv_friction; - if(f > 0) - other.velocity += self.movedir * self.speed * (1 / f - 1); - } - else + float f = 1 - frametime * autocvar_sv_friction; + if(f > 0) + other.velocity += self.movedir * self.speed * (1 / f - 1); + } + else + { + tracebox(other.origin, other.mins, other.maxs, other.origin + self.movedir * (self.speed * sys_frametime), MOVE_NORMAL, other); + if(trace_fraction > 0) setorigin(other, trace_endpos); } } -- 2.39.2