mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
Fixes #239
This commit is contained in:
parent
a27b8e26b6
commit
b5e7da84b7
@ -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)
|
||||
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user