X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fecs%2Fsystems%2Fphysics.qc;fp=qcsrc%2Fecs%2Fsystems%2Fphysics.qc;h=70ecc524cafd2680feae7769785296f0f58f6f14;hb=deb4c0dce1468665f6328aea364ab570b93490f8;hp=75657c90f268c6f9248377114df942c96fbf1674;hpb=e65ceea744386d1236c3439a87bebc27a5df564c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/ecs/systems/physics.qc b/qcsrc/ecs/systems/physics.qc index 75657c90f..70ecc524c 100644 --- a/qcsrc/ecs/systems/physics.qc +++ b/qcsrc/ecs/systems/physics.qc @@ -112,7 +112,7 @@ void sys_phys_update(entity this, float dt) sys_phys_simulate(this, dt); this.com_phys_water = false; this.jumppadcount = 0; - } else if (time < this.ladder_time) { + } else if (this.ladder_entity) { this.com_phys_friction = PHYS_FRICTION(this); this.com_phys_vel_max = PHYS_MAXSPEED(this) * maxspeed_mod; this.com_phys_acc_rate = PHYS_ACCELERATE(this) * maxspeed_mod;