From: terencehill Date: Sat, 26 Dec 2020 18:16:36 +0000 (+0100) Subject: Remove unused com_phys_acc field X-Git-Tag: xonotic-v0.8.5~620 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f76ce70a873b3df179a30b291401b098125df52;p=xonotic%2Fxonotic-data.pk3dir.git Remove unused com_phys_acc field --- 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);