eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot/game game.cpp [multibyte]


From: eliot-dev
Subject: [Eliot-dev] eliot/game game.cpp [multibyte]
Date: Wed, 04 Jan 2006 08:19:15 +0000

CVSROOT:        /sources/eliot
Module name:    eliot
Branch:         multibyte
Changes by:     Olivier Teulière <address@hidden>      06/01/04 08:19:15

Modified files:
        game           : game.cpp 

Log message:
        Fixed a warning

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/eliot/game/game.cpp.diff?only_with_tag=multibyte&tr1=1.27.2.2&tr2=1.27.2.3&r1=text&r2=text

Patches:
Index: eliot/game/game.cpp
diff -u eliot/game/game.cpp:1.27.2.2 eliot/game/game.cpp:1.27.2.3
--- eliot/game/game.cpp:1.27.2.2        Tue Jan  3 20:42:13 2006
+++ eliot/game/game.cpp Wed Jan  4 08:19:15 2006
@@ -157,8 +157,8 @@
 
     if (n < 0)
     {
-       debug("Game::back negative argument\n");
-       n = -n;
+        debug("Game::back negative argument\n");
+        n = -n;
     }
     debug("Game::back %d\n",n);
     for (i = 0; i < n; i++)
@@ -168,7 +168,8 @@
             prevPlayer();
             player = m_players[m_currPlayer];
             const Round &lastround = m_history.getPreviousTurn().getRound();
-           debug("Game::back last round %s\n",lastround.toString().c_str());
+            debug("Game::back last round %s\n",
+                  convertToMb(lastround.toString()).c_str());
             /* Remove the word from the board, and put its letters back
              * into the bag */
             m_board.removeRound(*m_dic, lastround);
@@ -185,8 +186,8 @@
             /* Remove the points of this round */
             player->addPoints(- lastround.getPoints());
             m_points -= lastround.getPoints();
-           /* Remove the turns */
-           player->removeLastTurn();
+            /* Remove the turns */
+            player->removeLastTurn();
             m_history.removeLastTurn();
         }
         else




reply via email to

[Prev in Thread] Current Thread [Next in Thread]