mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 10:50:24 +00:00
Let world dispatch expedition expire warnings
This depends on C++14 remaining enabled for chrono literals
This commit is contained in:
+3
-6
@@ -1524,16 +1524,13 @@ bool Zone::Process() {
|
||||
|
||||
if (minutes_warning > 0)
|
||||
{
|
||||
// expedition expire warnings are handled by world
|
||||
auto expedition = Expedition::FindCachedExpeditionByZoneInstance(GetZoneID(), GetInstanceID());
|
||||
if (expedition)
|
||||
{
|
||||
expedition->SendWorldExpireWarning(minutes_warning);
|
||||
}
|
||||
else
|
||||
if (!expedition)
|
||||
{
|
||||
entity_list.ExpeditionWarning(minutes_warning);
|
||||
Instance_Warning_timer = new Timer(10000);
|
||||
}
|
||||
Instance_Warning_timer = new Timer(10000);
|
||||
}
|
||||
}
|
||||
else if(Instance_Warning_timer->Check())
|
||||
|
||||
Reference in New Issue
Block a user