mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 05:11: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
|
//Advance the timer to our current point in time
|
||||||
Timer::SetCurrentTime();
|
Timer::SetCurrentTime();
|
||||||
|
|
||||||
//process stuff from world
|
|
||||||
worldserver.Process();
|
worldserver.Process();
|
||||||
|
|
||||||
if (!eqsf.IsOpen() && Config->ZonePort!=0) {
|
if (!eqsf.IsOpen() && Config->ZonePort!=0) {
|
||||||
Log.Out(Logs::Detail, Logs::Zone_Server, "Starting EQ Network server on port %d",Config->ZonePort);
|
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)) {
|
if (!eqsf.Open(Config->ZonePort)) {
|
||||||
Log.Out(Logs::General, Logs::Error, "Failed to open port %d",Config->ZonePort);
|
Log.Out(Logs::General, Logs::Error, "Failed to open port %d",Config->ZonePort);
|
||||||
ZoneConfig::SetZonePort(0);
|
ZoneConfig::SetZonePort(0);
|
||||||
@ -430,9 +425,7 @@ int main(int argc, char** argv) {
|
|||||||
entity_list.RaidProcess();
|
entity_list.RaidProcess();
|
||||||
|
|
||||||
entity_list.Process();
|
entity_list.Process();
|
||||||
|
|
||||||
entity_list.MobProcess();
|
entity_list.MobProcess();
|
||||||
|
|
||||||
entity_list.BeaconProcess();
|
entity_list.BeaconProcess();
|
||||||
|
|
||||||
if (zone) {
|
if (zone) {
|
||||||
@ -505,7 +498,6 @@ void Shutdown()
|
|||||||
Zone::Shutdown(true);
|
Zone::Shutdown(true);
|
||||||
RunLoops = false;
|
RunLoops = false;
|
||||||
worldserver.Disconnect();
|
worldserver.Disconnect();
|
||||||
// safe_delete(worldserver);
|
|
||||||
Log.Out(Logs::Detail, Logs::Zone_Server, "Shutting down...");
|
Log.Out(Logs::Detail, Logs::Zone_Server, "Shutting down...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -131,7 +131,7 @@ void WorldServer::OnConnected() {
|
|||||||
SendPacket(pack);
|
SendPacket(pack);
|
||||||
safe_delete(pack);
|
safe_delete(pack);
|
||||||
}
|
}
|
||||||
|
/* Zone Process Packets from World */
|
||||||
void WorldServer::Process() {
|
void WorldServer::Process() {
|
||||||
WorldConnection::Process();
|
WorldConnection::Process();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user