This commit is contained in:
Anonymous275 2020-05-07 00:33:53 +03:00
parent f4d99eea41
commit a132fd7b9f
2 changed files with 4 additions and 2 deletions

View File

@ -138,6 +138,8 @@ int main(int argc, char* argv[]){
Download(link,Path + R"(\mods\BeamMP.zip)");
std::cout << "Download Complete!" << std::endl;
link.clear();
std::thread Game(StartGame,ExeDir,(Path + "\\"));
Game.detach();
if(!MPDEV){
std::thread Game(StartGame,ExeDir,(Path + "\\"));
Game.detach();

View File

@ -56,7 +56,7 @@ void RUDPSEND(const std::string&Data,bool Rel){
<< " : "
<< Data.substr(0, 10)
<< Data.substr(Data.length() - 10) << std::endl;
}else if(MPDEV && Data.length() < 100){
}else if(MPDEV){
std::cout << "(Game->Launcher) : " << Data << std::endl;
}
}
@ -139,11 +139,11 @@ void RUDPClientThread(const std::string& IP, int Port){
TCPTerminate = true;
Terminate = true;
}
ServerPeer = client.peer;
std::thread Ping(AutoPing,client.peer);
Ping.detach();
ENetEvent event;
while (!Terminate) {
ServerPeer = client.peer;
enet_host_service(client.host, &event, 1);
HandleEvent(event,client);
}