some minor bug fixes; disallow deck storage commands to unauthenticated users

This commit is contained in:
Max-Wilhelm Bruker 2009-12-19 22:40:34 +01:00
parent 226837e98a
commit 06de6b1a6c
5 changed files with 23 additions and 3 deletions

View file

@ -146,7 +146,6 @@ void Server_Game::stopGameIfFinished()
Server_Player *player = playerIterator.next().value();
player->sendProtocolItem(new Event_GameStateChanged(gameId, gameStarted, -1, -1, getGameState(player)));
}
}
ResponseCode Server_Game::checkJoin(const QString &_password, bool spectator)
@ -185,6 +184,8 @@ void Server_Game::removePlayer(Server_Player *player)
if (!getPlayerCount())
deleteLater();
else
stopGameIfFinished();
qobject_cast<Server *>(parent())->broadcastGameListUpdate(this);
}