Skip to content

Commit

Permalink
Update game_round_end
Browse files Browse the repository at this point in the history
  • Loading branch information
overl4y committed Feb 22, 2024
1 parent a1fd386 commit 72bf54e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions regamedll/dlls/gamerules.h
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,6 @@ inline void CHalfLifeMultiplay::TerminateRound(float tmDelay, int iWinStatus)
m_iRoundWinStatus = iWinStatus;
m_flRestartRoundTime = gpGlobals->time + tmDelay;
m_bRoundTerminating = true;

#ifdef REGAMEDLL_ADD
FireTargets("game_round_end", nullptr, nullptr, USE_TOGGLE, 0.0);
#endif
}

inline float CHalfLifeMultiplay::GetRoundRemainingTimeReal() const
Expand Down
4 changes: 4 additions & 0 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ void CHalfLifeMultiplay::EndRoundMessage(const char *sentence, ScenarioEventEndR
}

UTIL_LogPrintf("World triggered \"Round_End\"\n");

#ifdef REGAMEDLL_ADD
FireTargets("game_round_end", nullptr, nullptr, USE_TOGGLE, 0.0);
#endif
}

void CHalfLifeMultiplay::ReadMultiplayCvars()
Expand Down

0 comments on commit 72bf54e

Please sign in to comment.