mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-23 15:13:55 -07:00
more spectator code
This commit is contained in:
parent
cdfe0e0301
commit
ab3858239f
13 changed files with 62 additions and 34 deletions
|
|
@ -100,7 +100,6 @@ void Server::incomingConnection(int socketId)
|
|||
ServerSocket *socket = new ServerSocket(this);
|
||||
socket->setSocketDescriptor(socketId);
|
||||
connect(socket, SIGNAL(createGame(const QString, const QString, int, bool, ServerSocket *)), this, SLOT(addGame(const QString, const QString, int, bool, ServerSocket *)));
|
||||
connect(socket, SIGNAL(joinGame(int, bool, ServerSocket *)), this, SLOT(addClientToGame(int, bool, ServerSocket *)));
|
||||
socket->initConnection();
|
||||
players << socket;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -822,8 +822,7 @@ void ServerSocket::msg(const QString &s)
|
|||
|
||||
void ServerSocket::initConnection()
|
||||
{
|
||||
msg(QString("welcome||%1").arg(VERSION_STRING));
|
||||
msg("welcome||.");
|
||||
msg(QString("welcome|%1|%2").arg(PROTOCOL_VERSION).arg(VERSION_STRING));
|
||||
}
|
||||
|
||||
void ServerSocket::catchSocketError(QAbstractSocket::SocketError socketError)
|
||||
|
|
|
|||
|
|
@ -18,4 +18,5 @@
|
|||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
const char *VERSION_STRING = "Servatrice 0.20090828";
|
||||
int PROTOCOL_VERSION = 1;
|
||||
const char *VERSION_STRING = "Servatrice 0.20090915";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue