From 971c2e81e2fd2d458b3b39ac87f84b02d2b4037a Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 14 Oct 2016 20:35:03 +1000 Subject: [PATCH] Remove oldmovement (unused) --- qcsrc/common/physics/player.qc | 2 -- qcsrc/ecs/systems/cl_physics.qc | 1 - qcsrc/ecs/systems/sv_physics.qc | 1 - 3 files changed, 4 deletions(-) diff --git a/qcsrc/common/physics/player.qc b/qcsrc/common/physics/player.qc index cbfbaaaca..b5635e094 100644 --- a/qcsrc/common/physics/player.qc +++ b/qcsrc/common/physics/player.qc @@ -670,8 +670,6 @@ void PM_check_blocked(entity this) #endif } -.vector oldmovement; - void PM_jetpack(entity this, float maxspd_mod, float dt) { //makevectors(this.v_angle.y * '0 1 0'); diff --git a/qcsrc/ecs/systems/cl_physics.qc b/qcsrc/ecs/systems/cl_physics.qc index f90afcb52..f74e9c2d5 100644 --- a/qcsrc/ecs/systems/cl_physics.qc +++ b/qcsrc/ecs/systems/cl_physics.qc @@ -4,7 +4,6 @@ void sys_phys_fix(entity this, float dt) { this.team = myteam + 1; // is this correct? PHYS_WATERJUMP_TIME(this) -= dt; - this.oldmovement = this.movement; this.movement = PHYS_INPUT_MOVEVALUES(this); this.items = STAT(ITEMS, this); this.spectatorspeed = STAT(SPECTATORSPEED, this); diff --git a/qcsrc/ecs/systems/sv_physics.qc b/qcsrc/ecs/systems/sv_physics.qc index 76e43eb0b..904ebba3f 100644 --- a/qcsrc/ecs/systems/sv_physics.qc +++ b/qcsrc/ecs/systems/sv_physics.qc @@ -4,7 +4,6 @@ void sys_phys_fix(entity this, float dt) { WarpZone_PlayerPhysics_FixVAngle(this); Physics_UpdateStats(this, PHYS_HIGHSPEED(this)); - this.oldmovement = this.movement; } bool sys_phys_override(entity this, float dt) -- 2.39.2