summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/chess/chess.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/games/chess/chess.cpp b/noncore/games/chess/chess.cpp
index 96a838a..29c96bb 100644
--- a/noncore/games/chess/chess.cpp
+++ b/noncore/games/chess/chess.cpp
@@ -18,12 +18,14 @@
**
**********************************************************************/
// human is not offered a promotion yet
+#include <stdlib.h>
+
#include <qcanvas.h>
#include <qmainwindow.h>
#include <qlist.h>
#include <qimage.h>
#include <qpainter.h>
#include <qmessagebox.h>
@@ -335,15 +337,15 @@ BoardView::BoardView(QCanvas *c, QWidget *w, const char *name)
humanSide = sideWhite;
activeSide = sideWhite;
playingGame = TRUE;
activePiece = 0;
list.setAutoDelete(TRUE);
setCanvas(new QCanvas());
- Config c("Chess", Config::User);
- c.setGroup("Theme");
- QString theme = c.readEntry("imagefile", "simple-28");
+ Config conf("Chess", Config::User);
+ conf.setGroup("Theme");
+ QString theme = conf.readEntry("imagefile", "simple-28");
setTheme(theme);
crafty = new CraftyProcess(this);
crafty->addArgument("crafty");
if (!crafty->start()) {
QMessageBox::critical(0,
tr("Could not find crafty chess engine"),