From 0ae77a659e857a900057c2509fba5b9f773aa47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sat, 18 Feb 2012 21:19:42 +0100 Subject: [PATCH] Cosmetics --- game/board_cross.cpp | 9 ++++----- game/player_move_cmd.cpp | 3 ++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/game/board_cross.cpp b/game/board_cross.cpp index 395578b..ba55a1d 100644 --- a/game/board_cross.cpp +++ b/game/board_cross.cpp @@ -34,13 +34,10 @@ static void Board_checkout_tile(const Dictionary &iDic, int& oPoints, int index) { - int i, left; - unsigned int node, succ; - oPoints = 0; /* Points on the left part */ - left = index; + int left = index; while (!iTiles[left - 1].isEmpty()) { left--; @@ -52,15 +49,17 @@ static void Board_checkout_tile(const Dictionary &iDic, wchar_t leftTiles [BOARD_DIM + 1]; wchar_t rightTiles[BOARD_DIM + 1]; - for (i = left; i < index; i++) + for (int i = left; i < index; i++) leftTiles[i - left] = towupper(iTiles[i].toChar()); leftTiles[index - left] = 0; + int i; for (i = index + 1; !iTiles[i].isEmpty(); i++) rightTiles[i - index - 1] = towupper(iTiles[i].toChar()); rightTiles[i - index - 1] = 0; /* Tiles that can be played */ + unsigned int node, succ; node = iDic.charLookup(iDic.getRoot(), leftTiles); if (node == 0) { diff --git a/game/player_move_cmd.cpp b/game/player_move_cmd.cpp index cc6ed2c..0f483fa 100644 --- a/game/player_move_cmd.cpp +++ b/game/player_move_cmd.cpp @@ -18,10 +18,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *****************************************************************************/ +#include + #include "player_move_cmd.h" #include "player.h" #include "rack.h" -#include INIT_LOGGER(game, PlayerMoveCmd);