mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 10:47:16 +00:00
Add a fail-safe for dynamic zone shutdown timers
This commit is contained in:
1 parent
4d2825d817
commit
5a9744b429
2 files changed
+6
-3
No files matched your search
+3
-3
@@ -1414,11 +1414,11 @@ bool Zone::HasWeather()
|
||||
|
||||
void Zone::StartShutdownTimer(uint32 set_time) {
|
||||
if (set_time > autoshutdown_timer.GetRemainingTime()) {
|
||||
if (set_time == (RuleI(Zone, AutoShutdownDelay)))
|
||||
{
|
||||
if (set_time == (RuleI(Zone, AutoShutdownDelay))) {
|
||||
set_time = database.getZoneShutDownDelay(GetZoneID(), GetInstanceVersion());
|
||||
}
|
||||
autoshutdown_timer.Start(set_time, false);
|
||||
autoshutdown_timer.SetTimer(set_time);
|
||||
Log(Logs::General, Logs::Zone_Server, "Zone::StartShutdownTimer set to %u", set_time);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user