Skip to content

Commit

Permalink
Fixes map updates when metrics is false.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arufonsu committed Oct 28, 2021
1 parent 042f917 commit 2e8b93d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Intersect.Server/Core/LogicService.LogicThread.cs
Expand Up @@ -355,16 +355,16 @@ private void UpdateMap(MapInstance map, bool onlyProjectiles)
var timeAfterUpdate = Timing.Global.Milliseconds;
MetricsRoot.Instance.Game.MapUpdateProcessingTime.Record(timeAfterUpdate - timeBeforeUpdate);
MetricsRoot.Instance.Game.MapTotalUpdateTime.Record(timeAfterUpdate - desiredMapUpdateTime);

if (ActiveMaps.Contains(map.Id))
{
MapUpdateQueue.Enqueue(map);
}
}
else
{
map.Update(Timing.Global.Milliseconds);
}

if (ActiveMaps.Contains(map.Id))
{
MapUpdateQueue.Enqueue(map);
}
}
}
catch (ThreadAbortException)
Expand Down

0 comments on commit 2e8b93d

Please sign in to comment.