This commit is contained in:
Max-Wilhelm Bruker 2009-04-09 14:23:34 +02:00
parent 503d42519a
commit 88829d0f66
2 changed files with 3 additions and 6 deletions

View file

@ -22,17 +22,14 @@
#include "serversocket.h" #include "serversocket.h"
ServerGame::ServerGame(QString _name, QString _description, QString _password, int _maxPlayers, QObject *parent) ServerGame::ServerGame(QString _name, QString _description, QString _password, int _maxPlayers, QObject *parent)
: QObject(parent), name(_name), description(_description), password(_password), maxPlayers(_maxPlayers) : QObject(parent), gameStarted(false), rnd(0), name(_name), description(_description), password(_password), maxPlayers(_maxPlayers)
{ {
gameStarted = false;
mutex = new QMutex(QMutex::Recursive); mutex = new QMutex(QMutex::Recursive);
rnd = NULL;
} }
ServerGame::~ServerGame() ServerGame::~ServerGame()
{ {
if (rnd) delete rnd;
delete rnd;
delete mutex; delete mutex;
qDebug("ServerGame destructor"); qDebug("ServerGame destructor");
} }

View file

@ -18,4 +18,4 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/ ***************************************************************************/
const char *VERSION_STRING = "Testserver 0.20090408"; const char *VERSION_STRING = "Servatrice 0.20090409";