[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/ktron
From: Benjamin Meyer <ben () meyerhome ! net>
Date: 2006-08-27 14:51:16
Message-ID: 1156690276.632243.10059.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 577788 by bmeyer:
swap kdebug for qassertx
M +6 -7 tron.cpp
--- trunk/KDE/kdegames/ktron/tron.cpp #577787:577788
@@ -32,7 +32,6 @@
#include <QPaintEvent>
#include <QVector>
-#include <kdebug.h>
#include <klocale.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -351,19 +350,19 @@
// find out which color to draw
QColor toDraw;
int player;
- if(type&PLAYER1) // check player bit
+ if(type & PLAYER1) // check player bit
{
toDraw=Settings::color_Player1();
player=0;
}
- else if(type&PLAYER2)
+ else if(type & PLAYER2)
{
toDraw=Settings::color_Player2();
player=1;
}
else
{
- kDebug() << "No player defined in Tron::drawRect(...)" << endl;
+ Q_ASSERT_X(true, "Tron::drawRect", "No player defined in Tron::drawRect(...)");
return;
}
@@ -489,11 +488,11 @@
return flag;
}
-void Tron::switchDir(int playerNr,Directions::Direction newDirection)
+void Tron::switchDir(int playerNr, Directions::Direction newDirection)
{
- if(playerNr!=0 && playerNr != 1)
+ if(playerNr !=0 && playerNr != 1)
{
- kDebug() << "wrong playerNr" << endl;
+ Q_ASSERT_X(true, "Tron::switchDir", "wrong playerNr");
return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic