eliot-dev
[Top][All Lists]
Advanced

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

[Eliot-dev] eliot/game bag.cpp board.cpp board_cross.cpp ga...


From: eliot-dev
Subject: [Eliot-dev] eliot/game bag.cpp board.cpp board_cross.cpp ga...
Date: Sat, 23 Dec 2006 13:50:43 +0000

CVSROOT:        /sources/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>      06/12/23 13:50:43

Modified files:
        game           : bag.cpp board.cpp board_cross.cpp game.cpp 

Log message:
        Fixed a few char/wchar_t issues. The remaining ones need a 
wchar_t-aware dictionary

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/game/bag.cpp?cvsroot=eliot&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/eliot/game/board.cpp?cvsroot=eliot&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/eliot/game/board_cross.cpp?cvsroot=eliot&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/eliot/game/game.cpp?cvsroot=eliot&r1=1.31&r2=1.32

Patches:
Index: bag.cpp
===================================================================
RCS file: /sources/eliot/eliot/game/bag.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- bag.cpp     22 Jan 2006 12:23:53 -0000      1.7
+++ bag.cpp     23 Dec 2006 13:50:43 -0000      1.8
@@ -132,7 +132,7 @@
     for (it = m_tilesMap.begin(); it != m_tilesMap.end(); it++)
     {
         if (it->second)
-            fprintf(stderr, "%c[%i] ", it->first.toChar(), it->second);
+            fprintf(stderr, "%lc[%i] ", it->first.toChar(), it->second);
     }
     fprintf(stderr, "\n");
 }

Index: board.cpp
===================================================================
RCS file: /sources/eliot/eliot/game/board.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- board.cpp   5 Nov 2006 13:30:06 -0000       1.15
+++ board.cpp   23 Dec 2006 13:50:43 -0000      1.16
@@ -272,16 +272,16 @@
             /* There is already a letter on the board */
             if (iTilesMx[row][col + i] != t)
             {
-                /* check if it is only a joker */
+                /* Check if it is only a joker */
                 if ((iTilesMx[row][col+i].toCode() == t.toCode()) && 
iTilesMx[row][col+i].isJoker())
                 {
-                    // do nothing, we don't need to change the tile in the 
round
+                    // Do nothing, we don't need to change the tile in the 
round
                     // iRound.setJoker(i,true);
-                    debug("load: play on joker for letter %d 
(%c)\n",i,iRound.getTile(i).toChar());
+                    debug("load: play on joker for letter %d (%lc)\n", i, 
iRound.getTile(i).toChar());
                 }
                 else
                 {
-                    debug("load: overwriting tile %c with %c\n",
+                    debug("load: overwriting tile %lc with %lc\n",
                           iTilesMx[row][col+i].toChar(),
                           t.toChar());
                     return 2;

Index: board_cross.cpp
===================================================================
RCS file: /sources/eliot/eliot/game/board_cross.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8

Index: game.cpp
===================================================================
RCS file: /sources/eliot/eliot/game/game.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- game.cpp    11 Aug 2006 22:13:02 -0000      1.31
+++ game.cpp    23 Dec 2006 13:50:43 -0000      1.32
@@ -92,7 +92,7 @@
             {
                 // Is the represented letter still available in the bag?
                 // FIXME: this way to get the represented letter sucks...
-                Tile t(toupper(iRound.getTile(i).toChar()));
+                Tile t(towupper(iRound.getTile(i).toChar()));
                 Bag bag;
                 realBag(bag);
                 // FIXME: realBag() does not give us a real bag in this




reply via email to

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