]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_jumppads.qc
Merge branch 'master' into TimePath/experiments/csqc_prediction
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_jumppads.qc
index 2e6f476d80b3a786450b1e49691a25a6d4e0eb9f..d45879491525dca01c4c587fcf7c47fcd97b02f5 100644 (file)
@@ -210,7 +210,7 @@ void trigger_push_touch()
                                        found = TRUE;
                        if(!found)
                        {
-                               other.(jumppadsused[mod(other.jumppadcount, NUM_JUMPPADSUSED)]) = self;
+                               other.(jumppadsused[other.jumppadcount % NUM_JUMPPADSUSED]) = self;
                                other.jumppadcount = other.jumppadcount + 1;
                        }