summaryrefslogtreecommitdiffstats
path: root/libksirtet/lib/mp_interface.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 15:50:40 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 16:50:52 +0900
commit66230b1cca2fa5c95886d8cf708829e4bfac2b10 (patch)
tree5e6e1b27ec25bddc51aaf011ffae6535c4455b8f /libksirtet/lib/mp_interface.cpp
parente36f7dafae19b9ba0e1657036236c3f62156b9a7 (diff)
downloadtdegames-66230b1cca2fa5c95886d8cf708829e4bfac2b10.tar.gz
tdegames-66230b1cca2fa5c95886d8cf708829e4bfac2b10.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libksirtet/lib/mp_interface.cpp')
-rw-r--r--libksirtet/lib/mp_interface.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libksirtet/lib/mp_interface.cpp b/libksirtet/lib/mp_interface.cpp
index b38a4896..ce341c24 100644
--- a/libksirtet/lib/mp_interface.cpp
+++ b/libksirtet/lib/mp_interface.cpp
@@ -64,7 +64,7 @@ void MPInterface::dialog()
// net meeting
TQPtrList<RemoteHostData> rhd;
- rhd.setAutoDelete(TRUE);
+ rhd.setAutoDelete(true);
if (cd.network) {
cId id(tdeApp->name(), gameInfo.gameId);
MPOptionWidget *ow = newOptionWidget();
@@ -110,8 +110,8 @@ void MPInterface::specialLocalGame(uint nbHumans, uint nbAIs)
: i18n("AI %1").arg(i-nbHumans+1));
cd.rhd.bds += bd;
}
- cd.server = TRUE;
- cd.network = FALSE;
+ cd.server = true;
+ cd.network = false;
Q_ASSERT( (nbHumans+nbAIs)<=gameInfo.maxNbLocalPlayers );
Q_ASSERT( gameInfo.AIAllowed || nbAIs==0 );
@@ -255,7 +255,7 @@ void MPInterface::hostDisconnected(uint, const TQString &msg)
errorBox(msg, TQString(), this);
if ( !disconnected ) { // to avoid multiple calls
- disconnected = TRUE;
+ disconnected = true;
// the zero timer is used to be outside the "internal" class
TQTimer::singleShot(0, this, TQ_SLOT(singleHumanSlot()));
}
@@ -263,7 +263,7 @@ void MPInterface::hostDisconnected(uint, const TQString &msg)
void MPInterface::singleHumanSlot()
{
- disconnected = FALSE;
+ disconnected = false;
singleHuman();
}