Skip to content

Commit

Permalink
Fixes map updates when metrics is false. (#1005)
Browse files Browse the repository at this point in the history
* Should resolve #855
  • Loading branch information
Arufonsu authored and jcsnider committed Mar 28, 2022
1 parent 3c38041 commit 83de924
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Intersect.Server/Core/LogicService.LogicThread.cs
Expand Up @@ -354,16 +354,16 @@ private void UpdateMap(MapInstance map, bool onlyProjectiles)
var timeAfterUpdate = Globals.Timing.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(Globals.Timing.Milliseconds);
}

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

0 comments on commit 83de924

Please sign in to comment.