From 7f9a98c4e3b4167cd957a4875e6cfdcfd711661d Mon Sep 17 00:00:00 2001 From: drjaska Date: Wed, 22 Mar 2023 15:59:04 +0200 Subject: [PATCH] preincrement nitpicking --- qcsrc/common/minigames/minigame/c4.qc | 4 ++-- qcsrc/common/minigames/minigame/ttt.qc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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); -- 2.39.2