Assign lockouts to all clients inside dz

This is live like and prevents possible exploiting by dropping
expedition before a lockout. Clients will continue receiving lockouts
until they leave the zone or are kicked via timer
This commit is contained in:
hg
2020-05-05 23:27:35 -04:00
parent b8b4c5a280
commit 3ca57dc0eb
2 changed files with 41 additions and 11 deletions
+3 -6
View File
@@ -161,14 +161,11 @@ bool Client::Process() {
if (TaskPeriodic_Timer.Check() && taskstate)
taskstate->TaskPeriodicChecks(this);
if (dynamiczone_removal_timer.Check())
if (dynamiczone_removal_timer.Check() && zone && zone->GetInstanceID() != 0)
{
dynamiczone_removal_timer.Disable();
if (zone && zone->GetInstanceID() != 0)
{
DynamicZone dz = DynamicZone::LoadDzFromDatabase(zone->GetInstanceID());
GoToDzSafeReturnOrBind(dz.GetSafeReturnLocation());
}
DynamicZone dz = DynamicZone::LoadDzFromDatabase(zone->GetInstanceID());
GoToDzSafeReturnOrBind(dz.GetSafeReturnLocation());
}
if (linkdead_timer.Check()) {