Cosmetics

This commit is contained in:
Olivier Teulière 2012-02-18 21:19:42 +01:00
parent 221158e19a
commit 0ae77a659e
2 changed files with 6 additions and 6 deletions

View file

@ -34,13 +34,10 @@ static void Board_checkout_tile(const Dictionary &iDic,
int& oPoints, int& oPoints,
int index) int index)
{ {
int i, left;
unsigned int node, succ;
oPoints = 0; oPoints = 0;
/* Points on the left part */ /* Points on the left part */
left = index; int left = index;
while (!iTiles[left - 1].isEmpty()) while (!iTiles[left - 1].isEmpty())
{ {
left--; left--;
@ -52,15 +49,17 @@ static void Board_checkout_tile(const Dictionary &iDic,
wchar_t leftTiles [BOARD_DIM + 1]; wchar_t leftTiles [BOARD_DIM + 1];
wchar_t rightTiles[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[i - left] = towupper(iTiles[i].toChar());
leftTiles[index - left] = 0; leftTiles[index - left] = 0;
int i;
for (i = index + 1; !iTiles[i].isEmpty(); i++) for (i = index + 1; !iTiles[i].isEmpty(); i++)
rightTiles[i - index - 1] = towupper(iTiles[i].toChar()); rightTiles[i - index - 1] = towupper(iTiles[i].toChar());
rightTiles[i - index - 1] = 0; rightTiles[i - index - 1] = 0;
/* Tiles that can be played */ /* Tiles that can be played */
unsigned int node, succ;
node = iDic.charLookup(iDic.getRoot(), leftTiles); node = iDic.charLookup(iDic.getRoot(), leftTiles);
if (node == 0) if (node == 0)
{ {

View file

@ -18,10 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/ *****************************************************************************/
#include <sstream>
#include "player_move_cmd.h" #include "player_move_cmd.h"
#include "player.h" #include "player.h"
#include "rack.h" #include "rack.h"
#include <sstream>
INIT_LOGGER(game, PlayerMoveCmd); INIT_LOGGER(game, PlayerMoveCmd);