1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

[Server] Some fixes for MasterClient

This commit is contained in:
Koncord 2017-02-03 00:55:59 +08:00
parent d9f5dfe65c
commit aed0651dc2
3 changed files with 3 additions and 7 deletions

View file

@ -164,7 +164,7 @@ void MasterClient::Update()
RakSleep(timeout);
players = mwmp::Networking::get().numberOfConnections();
players = Players::getPlayers()->size();
response = Send(hostname, modname, maxPlayers, update, players);
update = true;
}

View file

@ -828,7 +828,8 @@ int Networking::mainLoop()
bs.Write(RakNet::RakString(player.second->npc.mName.c_str()));
bs.Write(0); // plugins
peer->Send(&bs, HIGH_PRIORITY, RELIABLE_ORDERED, 0, packet->systemAddress, false);
break;
peer->CloseConnection(packet->guid, false);
break;
}
default:
update(packet);

View file

@ -120,11 +120,6 @@ std::string loadSettings (Settings::Manager & settings)
return settingspath;
}
void queryThread(MasterClient *mclient)
{
mclient->Update();
}
class Tee : public boost::iostreams::sink
{
public: