mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
unimportant changes
This commit is contained in:
parent
4054afc759
commit
7f659573bc
21 changed files with 89 additions and 51 deletions
|
|
@ -18,19 +18,17 @@
|
|||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "servergame.h"
|
||||
#include "random.h"
|
||||
#include "serversocket.h"
|
||||
#include <QSqlQuery>
|
||||
|
||||
ServerGame::ServerGame(ServerSocket *_creator, int _gameId, QString _description, QString _password, int _maxPlayers, QObject *parent)
|
||||
: QObject(parent), gameStarted(false), rnd(0), creator(_creator), gameId(_gameId), description(_description), password(_password), maxPlayers(_maxPlayers)
|
||||
: QObject(parent), gameStarted(false), creator(_creator), gameId(_gameId), description(_description), password(_password), maxPlayers(_maxPlayers)
|
||||
{
|
||||
}
|
||||
|
||||
ServerGame::~ServerGame()
|
||||
{
|
||||
emit gameClosing();
|
||||
delete rnd;
|
||||
qDebug("ServerGame destructor");
|
||||
}
|
||||
|
||||
|
|
@ -103,11 +101,6 @@ void ServerGame::startGameIfReady()
|
|||
query.exec();
|
||||
}
|
||||
|
||||
if (!rnd) {
|
||||
rnd = new Random(this);
|
||||
rnd->init();
|
||||
}
|
||||
|
||||
for (int i = 0; i < players.size(); i++)
|
||||
players.at(i)->setupZones();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue