]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset .jumppadcount underwater
authorterencehill <piuntn@gmail.com>
Fri, 4 Aug 2017 14:24:26 +0000 (16:24 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 4 Aug 2017 14:24:26 +0000 (16:24 +0200)
qcsrc/ecs/systems/physics.qc

index e6c2f7ccd8617e0087b19d0224d5e0760174cf3f..ec97bb2a15734f9bbc7c6f3b700e752a1527f8dc 100644 (file)
@@ -108,6 +108,7 @@ void sys_phys_update(entity this, float dt)
                this.com_phys_water = true;
                sys_phys_simulate(this, dt);
                this.com_phys_water = false;
+               this.jumppadcount = 0;
        } else if (time < this.ladder_time) {
                this.com_phys_friction = PHYS_FRICTION(this);
                this.com_phys_vel_max = PHYS_MAXSPEED(this) * maxspeed_mod;