]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/ecs/systems/physics.qc
micro-optimization chore: in for-loops change all post-{in,de}crements to pre-{in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / ecs / systems / physics.qc
index c7fc88dc93593159e524a4e9920b32481362fdf2..a68faea4465c23bdd1601fccfd37e9c185d31c76 100644 (file)
@@ -437,7 +437,7 @@ void sys_phys_simulate_simple(entity this, float dt)
 
        this.angles += dt * this.avelocity;
        float movetime = dt;
-       for (int i = 0; i < MAX_CLIP_PLANES && movetime > 0; i++) {
+       for (int i = 0; i < MAX_CLIP_PLANES && movetime > 0; ++i) {
                vector push = vel * movetime;
                vector p0 = pos;
                vector p1 = p0 + push;