diff options
Diffstat (limited to 'kpacman/board.cpp')
-rw-r--r-- | kpacman/board.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kpacman/board.cpp b/kpacman/board.cpp index 618838d..95ad5f2 100644 --- a/kpacman/board.cpp +++ b/kpacman/board.cpp @@ -11,7 +11,7 @@ #include "board.h" #include "bitmaps.h" -Board::Board(int size) : TQArray<int> (size) +Board::Board(int size) : TQMemArray<int> (size) { sz = size; // set size of board @@ -58,7 +58,7 @@ void Board::init(Image image, TQString levelName) "or could not be opened for reading."); msg.replace(TQRegExp("@LEVELNAME@"), levelName); // TQMessageBox::information(0, i18n("Initialization Error"), msg); - printf("%s\n", msg.data()); + printf("%s\n", msg.local8Bit()); } else { map.fill(' ', BoardHeight*BoardWidth); int height = 0; @@ -75,7 +75,7 @@ void Board::init(Image image, TQString levelName) map.replace(height*BoardWidth, (line.length() > BoardWidth) ? BoardWidth : line.length(), - line.data()); + line.local8Bit()); height++; } @@ -93,7 +93,7 @@ void Board::init(Image image, TQString levelName) break; case Level : setup(demo_bits); break; - case File : setup((uchar *) map.data()); + case File : setup((uchar *) map.local8Bit().data()); break; default : break; } |