From: Mario Date: Fri, 25 Sep 2015 05:16:59 +0000 (+1000) Subject: Use j instead of t (field issues) X-Git-Tag: xonotic-v0.8.2~1906^2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af021d6e1e5f5d6fb51dd780f10eda9b5b9c4f23;p=xonotic%2Fxonotic-data.pk3dir.git Use j instead of t (field issues) --- diff --git a/qcsrc/common/minigames/minigame/snake.qc b/qcsrc/common/minigames/minigame/snake.qc index 8d7189e95..c14f79c4d 100644 --- a/qcsrc/common/minigames/minigame/snake.qc +++ b/qcsrc/common/minigames/minigame/snake.qc @@ -52,11 +52,10 @@ bool snake_valid_tile(string tile) void snake_new_mouse(entity minigame) { RandomSelection_Init(); - int i, t; - for(i = 0; i < SNAKE_LET_CNT; ++i) - for(t = 0; t < SNAKE_NUM_CNT; ++t) + for(int i = 0; i < SNAKE_LET_CNT; ++i) + for(int j = 0; j < SNAKE_NUM_CNT; ++j) { - string pos = minigame_tile_buildname(i, t); + string pos = minigame_tile_buildname(i, j); if(!snake_find_piece(minigame, pos)) RandomSelection_Add(world, 0, pos, 1, 1); } @@ -106,8 +105,8 @@ void snake_move_body(entity minigame, bool ate_mouse) string tailpos = string_null; vector taildir = '0 0 0'; - int pieces = 0; - for(int i = (SNAKE_NUM_CNT * SNAKE_LET_CNT); i >= 2; --i) + int i, pieces = 0; + for(i = (SNAKE_NUM_CNT * SNAKE_LET_CNT); i >= 2; --i) { entity piece = snake_find_cnt(minigame, i); entity nextpiece = snake_find_cnt(minigame, i - 1);