foo
This commit is contained in:
parent
503d42519a
commit
88829d0f66
2 changed files with 3 additions and 6 deletions
|
@ -22,17 +22,14 @@
|
|||
#include "serversocket.h"
|
||||
|
||||
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);
|
||||
rnd = NULL;
|
||||
}
|
||||
|
||||
ServerGame::~ServerGame()
|
||||
{
|
||||
if (rnd)
|
||||
delete rnd;
|
||||
delete rnd;
|
||||
delete mutex;
|
||||
qDebug("ServerGame destructor");
|
||||
}
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
const char *VERSION_STRING = "Testserver 0.20090408";
|
||||
const char *VERSION_STRING = "Servatrice 0.20090409";
|
||||
|
|
Loading…
Reference in a new issue