]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix jumping
authorMario <mario@smbclan.net>
Sat, 4 Mar 2017 00:17:40 +0000 (10:17 +1000)
committerMario <mario@smbclan.net>
Sat, 4 Mar 2017 00:17:40 +0000 (10:17 +1000)
qcsrc/common/monsters/monster/monster.qc

index 5d63eda66afd3ad403edc7bba9386584cf58fce7..780358c3fe17f36743c2fb29a8389e4efe87875d 100644 (file)
@@ -139,7 +139,7 @@ spawnfunc(monster_custom) { Monster_Spawn(this, true, MON_MONSTER.monsterid); }
 METHOD(CustomMonster, mr_think, bool(CustomMonster this, entity actor))
 {
     TC(CustomMonster, this);
-    if((actor.mon_movetype & MON_MOVE_JUMP) && time < actor.jump_delay)
+    if((actor.mon_movetype & MON_MOVE_JUMP) && time >= actor.jump_delay)
     {
        actor.velocity_z += actor.mon_jumpheight;
        actor.jump_delay = time + (random() * actor.mon_jumpdelay);