mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue