From: Rudolf Polzer Date: Wed, 18 Aug 2010 18:44:48 +0000 (+0200) Subject: fix compile errors X-Git-Tag: xonotic-v0.1.0preview~345 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=a4b73ef57fb8bc89fe417a3121b7367d1fb71d87;p=xonotic%2Fxonotic-data.pk3dir.git fix compile errors --- diff --git a/qcsrc/server/anticheat.qc b/qcsrc/server/anticheat.qc index 0d606ca76..5e7eb7075 100644 --- a/qcsrc/server/anticheat.qc +++ b/qcsrc/server/anticheat.qc @@ -70,11 +70,11 @@ void anticheat_physics() MEAN_ACCUMULATE(anticheat_div0_evade, 1 - (self.anticheat_div0_evade_forward_initial * v_forward), 1); } - MEAN_ACCUMULATE(anticheat_div0_strafebot_old, movement_oddity(self.movement, self.anticheat_div0_strafebot_movement_prev), max(0, sys_ticrate - frametime)); + MEAN_ACCUMULATE(anticheat_div0_strafebot_old, movement_oddity(self.movement, self.anticheat_div0_strafebot_movement_prev), max(0, sys_frametime - frametime)); self.anticheat_div0_strafebot_movement_prev = self.movement; if(vlen(self.anticheat_div0_strafebot_forward_prev)) - MEAN_ACCUMULATE(anticheat_div0_strafebot_new, 1 - (self.anticheat_div0_strafebot_forward_prev * v_forward), max(0, sys_ticrate - frametime)); + MEAN_ACCUMULATE(anticheat_div0_strafebot_new, 1 - (self.anticheat_div0_strafebot_forward_prev * v_forward), max(0, sys_frametime - frametime)); self.anticheat_div0_strafebot_forward_prev = v_forward; // generic speedhack detection: correlate anticheat_speedhack_movetime (UPDATED BEFORE THIS) and server time diff --git a/qcsrc/server/cl_physics.qc b/qcsrc/server/cl_physics.qc index 9dc1616c2..2df6c1c4f 100644 --- a/qcsrc/server/cl_physics.qc +++ b/qcsrc/server/cl_physics.qc @@ -103,7 +103,7 @@ void PlayerJump (void) curspeed = max( vlen(vec2(self.velocity)), // current xy speed - vlen(vec2(antilag_takebackavgvelocity(self, max(self.lastteleporttime + sys_ticrate, time - 0.25), time))) // average xy topspeed over the last 0.25 secs + vlen(vec2(antilag_takebackavgvelocity(self, max(self.lastteleporttime + sys_frametime, time - 0.25), time))) // average xy topspeed over the last 0.25 secs ); makevectors(self.v_angle_y * '0 1 0'); wishvel = v_forward * self.movement_x + v_right * self.movement_y;