]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/sandbox/sv_sandbox.qc
micro-optimization chore: in for-loops change all post-{in,de}crements to pre-{in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / sandbox / sv_sandbox.qc
index a31eee2ba49db3dba85272725628fddf4317f344..a387af90f1d58f2d6b098a279603e7e9c2e6c279 100644 (file)
@@ -437,7 +437,7 @@ void sandbox_Database_Load()
                        if(e.material)
                        {
                                // since objects are being loaded for the first time, precache material sounds for each
-                               for (i = 1; i <= 5; i++) // 5 sounds in total
+                               for (i = 1; i <= 5; ++i) // 5 sounds in total
                                        precache_sound(strcat("object/impact_", e.material, "_", ftos(i), ".wav"));
                        }
                }
@@ -714,7 +714,7 @@ MUTATOR_HOOKFUNCTION(sandbox, SV_ParseClientCommand)
                                                        strfree(e.material);
                                                        if(argv(3))
                                                        {
-                                                               for (j = 1; j <= 5; j++) // precache material sounds, 5 in total
+                                                               for (j = 1; j <= 5; ++j) // precache material sounds, 5 in total
                                                                        precache_sound(strcat("object/impact_", argv(3), "_", ftos(j), ".wav"));
                                                                e.material = strzone(argv(3));
                                                        }