ZoneServer Timers - possible oversight?
Posted: Tue Dec 04, 2012 3:47 pm
C++ dudes, I have a question. In the ZoneServer::ZoneServer() function, one of the default values passed belongs to Timer widget_timer, and is set to 5000ms.
However, in the list of timers "Start" in ZoneServer, never is "widget_timer.Start()" ever set. Furthermore, nowhere else in code is widget_timer set, but is referenced in ZoneServer::SpawnProcess() as "if(widget_timer.Check() && !zoneShuttingDown)".
Correct me if I'm wrong, but if the widget_timer.Start() is never called, this "if" is never actually hit, right?
This is called instead -
So I am just checking to make sure nothing is missing, because I am sure it's been like this forever. Not even sure what Widget Timers might do... any ideas?
Edit: There's also one for spawn_range I just found, also never "started", but I do see code that says spawn_range.Trigger();
However, in the list of timers "Start" in ZoneServer, never is "widget_timer.Start()" ever set. Furthermore, nowhere else in code is widget_timer set, but is referenced in ZoneServer::SpawnProcess() as "if(widget_timer.Check() && !zoneShuttingDown)".
Correct me if I'm wrong, but if the widget_timer.Start() is never called, this "if" is never actually hit, right?
Code: Select all
if(widget_timer.Check() && !zoneShuttingDown)
CheckWidgetTimers();Code: Select all
MutexMap<Spawn*, int32> widget_timers;Edit: There's also one for spawn_range I just found, also never "started", but I do see code that says spawn_range.Trigger();