From 1f76ce70a873b3df179a30b291401b098125df52 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 26 Dec 2020 19:16:36 +0100 Subject: [PATCH] Remove unused com_phys_acc field --- qcsrc/ecs/components/physics.qh | 1 - qcsrc/ecs/systems/physics.qc | 2 -- 2 files changed, 3 deletions(-) diff --git a/qcsrc/ecs/components/physics.qh b/qcsrc/ecs/components/physics.qh index f150a296c..1852d14ea 100644 --- a/qcsrc/ecs/components/physics.qh +++ b/qcsrc/ecs/components/physics.qh @@ -7,7 +7,6 @@ COMPONENT(phys); .float com_phys_vel_max; .float com_phys_vel_max_air; .float com_phys_vel_max_air_strafe; -.vector com_phys_acc; .float com_phys_acc_rate; .float com_phys_acc_rate_air; .float com_phys_acc_rate_air_strafe; diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index 70ecc524c..1f42c6988 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -427,7 +427,6 @@ void sys_phys_simulate_simple(entity this, float dt) vector g = '0 0 0'; if (this.com_phys_gravity_factor && !g) g = '0 0 -1' * PHYS_GRAVITY(NULL); - vector acc = this.com_phys_acc; vector vel = this.com_phys_vel; vector pos = this.com_phys_pos; @@ -500,7 +499,6 @@ void sys_phys_simulate_simple(entity this, float dt) ClipVelocity(vel, trace_plane_normal, vel, 1); } - this.com_phys_acc = acc; this.com_phys_vel = vel; this.com_phys_pos = pos; setorigin(this, this.com_phys_pos); -- 2.39.2