Skip to content

Commit

Permalink
fix: initCMFlagHook after CreateNode
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy-Vidaurri authored and ThisAMJ committed Aug 29, 2024
1 parent f29f674 commit 1d6484f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Features/ChallengeMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void ChallengeMode::LoadNodes(SourceGameVersion version) {

std::vector<ChallengeNodeData_t> ChallengeMode::customNodes;

ON_EVENT(SESSION_START) {
ON_EVENT_P(SESSION_START, 1) {
if (cm) {
cm->CreateNode();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ static void InitPlayerRunCommandHook() {

ON_EVENT(SESSION_START) {
if (!g_IsAcceptInputTrampolineInitialized) InitAcceptInputTrampoline();
if (!g_IsCMFlagHookInitialized && sv_bonus_challenge.GetBool()) InitCMFlagHook();
if (!g_IsCMFlagHookInitialized && client->GetChallengeStatus() == CMStatus::CHALLENGE) InitCMFlagHook();
if (!g_IsPlayerRunCommandHookInitialized) InitPlayerRunCommandHook();
}

Expand Down

0 comments on commit 1d6484f

Please sign in to comment.