:Q
This commit is contained in:
parent
58c97587bf
commit
8bfee4a9ff
@ -163,7 +163,6 @@ int Server::Ready() {
|
|||||||
play.tid = log->tid;
|
play.tid = log->tid;
|
||||||
|
|
||||||
sendPackTo<GameInfo>(m_sock_udp, &m_game, &m_buf, &sockad);
|
sendPackTo<GameInfo>(m_sock_udp, &m_game, &m_buf, &sockad);
|
||||||
std::cout << m_game.seed << std::endl;
|
|
||||||
Connection* conn = new Connection(sock, sockad, *log, play);
|
Connection* conn = new Connection(sock, sockad, *log, play);
|
||||||
|
|
||||||
m_conns[log->sid] = conn;
|
m_conns[log->sid] = conn;
|
||||||
|
@ -94,6 +94,7 @@ int Connector::Connect(const char* srv_addr, std::string name) {
|
|||||||
++errors;
|
++errors;
|
||||||
else {
|
else {
|
||||||
m_players[pl->id] = pl;
|
m_players[pl->id] = pl;
|
||||||
|
std::cout << "A challenger appears! " << pl->name << std::endl;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TEAMINF:
|
case TEAMINF:
|
||||||
|
Loading…
Reference in New Issue
Block a user