From: drjaska Date: Wed, 22 Mar 2023 13:59:04 +0000 (+0200) Subject: preincrement nitpicking X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7f9a98c4e3b4167cd957a4875e6cfdcfd711661d;p=xonotic%2Fxonotic-data.pk3dir.git preincrement nitpicking --- diff --git a/qcsrc/common/minigames/minigame/c4.qc b/qcsrc/common/minigames/minigame/c4.qc index 5d6ea5376..cd3bd7261 100644 --- a/qcsrc/common/minigames/minigame/c4.qc +++ b/qcsrc/common/minigames/minigame/c4.qc @@ -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); diff --git a/qcsrc/common/minigames/minigame/ttt.qc b/qcsrc/common/minigames/minigame/ttt.qc index 7d8fc83f7..6b294e532 100644 --- a/qcsrc/common/minigames/minigame/ttt.qc +++ b/qcsrc/common/minigames/minigame/ttt.qc @@ -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);