mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
General cleanup
This commit is contained in:
parent
ab4595f56d
commit
d45bc6d26a
@ -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...");
|
||||
}
|
||||
|
||||
|
||||
@ -131,7 +131,7 @@ void WorldServer::OnConnected() {
|
||||
SendPacket(pack);
|
||||
safe_delete(pack);
|
||||
}
|
||||
|
||||
/* Zone Process Packets from World */
|
||||
void WorldServer::Process() {
|
||||
WorldConnection::Process();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user