Skip to content

Commit

Permalink
Fixes #239
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Dec 17, 2017
1 parent a27b8e2 commit b5e7da8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regamedll/dlls/multiplay_gamerules.cpp
Expand Up @@ -804,9 +804,6 @@ LINK_HOOK_CLASS_VOID_CUSTOM_CHAIN2(CHalfLifeMultiplay, CSGameRules, CheckWinCond
// Check if the scenario has been won/lost.
void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CheckWinConditions)()
{
if (HasRoundInfinite())
return;

#ifdef REGAMEDLL_FIXES
// If a winner has already been determined.. then get the heck out of here
if (m_iRoundWinStatus != WINSTATUS_NONE)
Expand All @@ -828,6 +825,9 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CheckWinConditions)()
int NumDeadCT, NumDeadTerrorist, NumAliveTerrorist, NumAliveCT;
InitializePlayerCounts(NumAliveTerrorist, NumAliveCT, NumDeadTerrorist, NumDeadCT);

if (HasRoundInfinite())
return;

// other player's check
m_bNeededPlayers = false;
if (!(scenarioFlags & SCENARIO_BLOCK_NEED_PLAYERS) && NeededPlayersCheck())
Expand Down

0 comments on commit b5e7da8

Please sign in to comment.