|
|
@ -200,7 +200,7 @@ Networking::Networking(): peer(RakNet::RakPeerInterface::GetInstance()), playerP
|
|
|
|
RakNet::SocketDescriptor sd;
|
|
|
|
RakNet::SocketDescriptor sd;
|
|
|
|
sd.port=0;
|
|
|
|
sd.port=0;
|
|
|
|
auto b = peer->Startup(1, &sd, 1);
|
|
|
|
auto b = peer->Startup(1, &sd, 1);
|
|
|
|
RakAssert(b==RakNet::RAKNET_STARTED);
|
|
|
|
RakAssert(b==RakNet::CRABNET_STARTED);
|
|
|
|
|
|
|
|
|
|
|
|
playerPacketController.SetStream(0, &bsOut);
|
|
|
|
playerPacketController.SetStream(0, &bsOut);
|
|
|
|
actorPacketController.SetStream(0, &bsOut);
|
|
|
|
actorPacketController.SetStream(0, &bsOut);
|
|
|
@ -303,6 +303,13 @@ void Networking::connect(const std::string &ip, unsigned short port, std::vector
|
|
|
|
queue = false;
|
|
|
|
queue = false;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
case ID_INCOMPATIBLE_PROTOCOL_VERSION:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
errmsg = "Network protocol mismatch!\nMake sure your client is really on the same version\n"
|
|
|
|
|
|
|
|
"as the server you are trying to connect to.";
|
|
|
|
|
|
|
|
queue = false;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
case ID_CONNECTION_REQUEST_ACCEPTED:
|
|
|
|
case ID_CONNECTION_REQUEST_ACCEPTED:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
serverAddr = packet->systemAddress;
|
|
|
|
serverAddr = packet->systemAddress;
|
|
|
|