]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove unused com_phys_acc field
authorterencehill <piuntn@gmail.com>
Sat, 26 Dec 2020 18:16:36 +0000 (19:16 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 26 Dec 2020 18:16:36 +0000 (19:16 +0100)
qcsrc/ecs/components/physics.qh
qcsrc/ecs/systems/physics.qc

index f150a296c299e8d46980c1ba2d4fb278665947d4..1852d14eac05d47811f07f97e5430b036c601a23 100644 (file)
@@ -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;
index 70ecc524cafd2680feae7769785296f0f58f6f14..1f42c698824537cc6b0c2478e47acfe751b4dec0 100644 (file)
@@ -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);