General cleanup

This commit is contained in:
Akkadius 2015-01-19 03:25:46 -06:00
parent ab4595f56d
commit d45bc6d26a
2 changed files with 5 additions and 13 deletions

View File

@ -348,15 +348,10 @@ int main(int argc, char** argv) {
//Advance the timer to our current point in time
Timer::SetCurrentTime();
//process stuff from world
worldserver.Process();
if (!eqsf.IsOpen() && Config->ZonePort!=0) {
Log.Out(Logs::Detail, Logs::Zone_Server, "Starting EQ Network server on port %d",Config->ZonePort);
// log_sys.CloseZoneLogs();
// log_sys.StartZoneLogs(StringFormat("%s_ver-%u_instid-%u_port-%u", zone->GetShortName(), zone->GetInstanceVersion(), zone->GetInstanceID(), ZoneConfig::get()->ZonePort));
if (!eqsf.Open(Config->ZonePort)) {
Log.Out(Logs::General, Logs::Error, "Failed to open port %d",Config->ZonePort);
ZoneConfig::SetZonePort(0);
@ -430,9 +425,7 @@ int main(int argc, char** argv) {
entity_list.RaidProcess();
entity_list.Process();
entity_list.MobProcess();
entity_list.BeaconProcess();
if (zone) {
@ -505,7 +498,6 @@ void Shutdown()
Zone::Shutdown(true);
RunLoops = false;
worldserver.Disconnect();
// safe_delete(worldserver);
Log.Out(Logs::Detail, Logs::Zone_Server, "Shutting down...");
}

View File

@ -131,7 +131,7 @@ void WorldServer::OnConnected() {
SendPacket(pack);
safe_delete(pack);
}
/* Zone Process Packets from World */
void WorldServer::Process() {
WorldConnection::Process();