Skip to content

Commit

Permalink
Undo WarmupChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Dec 1, 2023
1 parent e9f3d30 commit 5b425c6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions PugSharp/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public class Application : IApplication


public string PugSharpDirectory { get; }
private bool _WarmupConfigLoaded = false;

private Match.Match? _Match;
private bool _DisposedValue;
Expand Down Expand Up @@ -317,8 +316,6 @@ private void OnMapStartHandler(string mapName)
SetMatchVariable(_Match.MatchInfo.Config);
});
}

_WarmupConfigLoaded = false;
}

// TODO Add Round Events to RoundService?
Expand Down Expand Up @@ -1560,16 +1557,9 @@ private async Task ConfigLoaderTask()
{
try
{
var gameRules = CounterStrikeSharp.API.Utilities.FindAllEntitiesByDesignerName<CCSGameRulesProxy>("cs_gamerules").First().GameRules;
if (gameRules != null && gameRules.WarmupPeriod && _WarmupConfigLoaded)
{
return;
}

if (!Utilities.GetPlayers().Exists(x => !x.IsBot && !x.IsHLTV))
{
_CsServer.LoadAndExecuteConfig("warmup.cfg");
_WarmupConfigLoaded = true;
}
}
catch (Exception e)
Expand Down

0 comments on commit 5b425c6

Please sign in to comment.