Change drop client code to not be two step process

This commit is contained in:
KimLS
2019-07-27 20:13:04 -07:00
parent 3f2f7b3929
commit b754ddbc67
2 changed files with 8 additions and 3 deletions
+1 -3
View File
@@ -1118,6 +1118,7 @@ bool Client::Process() {
Log(Logs::General, Logs::World_Server, "Zone bootup timer expired, bootup failed or too slow.");
TellClientZoneUnavailable();
}
if(connect.Check()){
SendGuildList();// Send OPCode: OP_GuildsList
SendApproveWorld();
@@ -1189,9 +1190,6 @@ void Client::EnterWorld(bool TryBootup) {
else
zone_server = zoneserver_list.FindByZoneID(zone_id);
//Tell all the zones to drop any client with this lsid because we're coming back in.
zoneserver_list.DropClient(GetLSID());
const char *zone_name = database.GetZoneName(zone_id, true);
if (zone_server) {
// warn the world we're comming, so it knows not to shutdown