mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-30 20:34:27 +01:00
Cosmetics
This commit is contained in:
parent
221158e19a
commit
0ae77a659e
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -18,10 +18,11 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*****************************************************************************/
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "player_move_cmd.h"
|
||||
#include "player.h"
|
||||
#include "rack.h"
|
||||
#include <sstream>
|
||||
|
||||
|
||||
INIT_LOGGER(game, PlayerMoveCmd);
|
||||
|
|
Loading…
Add table
Reference in a new issue