mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-28 06: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.
|
// Check if the scenario has been won/lost.
|
||||||
void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CheckWinConditions)()
|
void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CheckWinConditions)()
|
||||||
{
|
{
|
||||||
if (HasRoundInfinite())
|
|
||||||
return;
|
|
||||||
|
|
||||||
#ifdef REGAMEDLL_FIXES
|
#ifdef REGAMEDLL_FIXES
|
||||||
// If a winner has already been determined.. then get the heck out of here
|
// If a winner has already been determined.. then get the heck out of here
|
||||||
if (m_iRoundWinStatus != WINSTATUS_NONE)
|
if (m_iRoundWinStatus != WINSTATUS_NONE)
|
||||||
@ -828,6 +825,9 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(CheckWinConditions)()
|
|||||||
int NumDeadCT, NumDeadTerrorist, NumAliveTerrorist, NumAliveCT;
|
int NumDeadCT, NumDeadTerrorist, NumAliveTerrorist, NumAliveCT;
|
||||||
InitializePlayerCounts(NumAliveTerrorist, NumAliveCT, NumDeadTerrorist, NumDeadCT);
|
InitializePlayerCounts(NumAliveTerrorist, NumAliveCT, NumDeadTerrorist, NumDeadCT);
|
||||||
|
|
||||||
|
if (HasRoundInfinite())
|
||||||
|
return;
|
||||||
|
|
||||||
// other player's check
|
// other player's check
|
||||||
m_bNeededPlayers = false;
|
m_bNeededPlayers = false;
|
||||||
if (!(scenarioFlags & SCENARIO_BLOCK_NEED_PLAYERS) && NeededPlayersCheck())
|
if (!(scenarioFlags & SCENARIO_BLOCK_NEED_PLAYERS) && NeededPlayersCheck())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user