]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
preincrement nitpicking
authordrjaska <drjaska83@gmail.com>
Wed, 22 Mar 2023 13:59:04 +0000 (15:59 +0200)
committerdrjaska <drjaska83@gmail.com>
Wed, 22 Mar 2023 13:59:04 +0000 (15:59 +0200)
qcsrc/common/minigames/minigame/c4.qc
qcsrc/common/minigames/minigame/ttt.qc

index 5d6ea5376bd15a39fc64465b8435bd03f113548e..cd3bd7261032aaf4ecd656c30d048580a6d617d9 100644 (file)
@@ -377,7 +377,7 @@ void c4_hud_status(vector pos, vector mySize)
        {
                if (e.classname == "minigame_player" && e.team == TTT_SPECTATOR_TEAM)
                {
-                       specs++;
+                       ++specs;
                }
        }
 
@@ -395,7 +395,7 @@ void c4_hud_status(vector pos, vector mySize)
                {
                        if (e.classname == "minigame_player" && e.team == TTT_SPECTATOR_TEAM)
                        {
-                               i++;
+                               ++i;
                                string current_spec = "";
 
                                string cmpctString = entcs_GetName(e.minigame_playerslot - 1);
index 7d8fc83f763aed3c7779fae01b00502fbb1a09b5..6b294e5323a706017a5a765ffdf601649a5a7cc8 100644 (file)
@@ -326,7 +326,7 @@ void ttt_hud_status(vector pos, vector mySize)
        {
                if (e.classname == "minigame_player" && e.team == TTT_SPECTATOR_TEAM)
                {
-                       specs++;
+                       ++specs;
                }
        }
 
@@ -344,7 +344,7 @@ void ttt_hud_status(vector pos, vector mySize)
                {
                        if (e.classname == "minigame_player" && e.team == TTT_SPECTATOR_TEAM)
                        {
-                               i++;
+                               ++i;
                                string current_spec = "";
 
                                string cmpctString = entcs_GetName(e.minigame_playerslot - 1);
@@ -479,7 +479,7 @@ int ttt_ai_random(int piecemask)
 
        RandomSelection_Init();
 
-       for ( int i = 0; i < 9; i++ )
+       for ( int i = 0; i < 9; ++i )
        {
                if ( piecemask & f )
                        RandomSelection_AddFloat(f, 1, 1);
@@ -555,9 +555,9 @@ void ttt_aimove(entity minigame)
                int piecemask_free = 0;
                int pieceflag = 1;
                string pos;
-               for ( int i = 0; i < 3; i++ )
+               for ( int i = 0; i < 3; ++i )
                {
-                       for ( int j = 0; j < 3; j++ )
+                       for ( int j = 0; j < 3; ++j )
                        {
                                pos = minigame_tile_buildname(i,j);
                                entity piece = ttt_find_piece(minigame,pos);