]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_jumppads.qc
Declare more ints as ints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_jumppads.qc
index 9e215747a1da4430cde952a0f3fe9c8203eb1bff..92af1cdd093b0733fe922e4423d96da706693457 100644 (file)
@@ -171,10 +171,8 @@ void trigger_push_touch()
                }
                if(IS_REAL_CLIENT(other) || IS_BOT_CLIENT(other))
                {
-                       float i;
-                       float found;
-                       found = false;
-                       for(i = 0; i < other.jumppadcount && i < NUM_JUMPPADSUSED; ++i)
+                       bool found = false;
+                       for(int i = 0; i < other.jumppadcount && i < NUM_JUMPPADSUSED; ++i)
                                if(other.(jumppadsused[i]) == self)
                                        found = true;
                        if(!found)