Skip to content

Commit

Permalink
fixup: be more reasonable
Browse files Browse the repository at this point in the history
the default priority is 0, the numbers being large are just people being silly. 1 > 0 -> 1 comes before 0
  • Loading branch information
ThisAMJ committed Aug 29, 2024
1 parent a1083f4 commit bb3ba0e
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_P(SESSION_START,500) {
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 @@ -673,7 +673,7 @@ static void InitPlayerRunCommandHook() {
g_IsPlayerRunCommandHookInitialized = true;
}

ON_EVENT_P(SESSION_START,-500) {
ON_EVENT(SESSION_START) {
if (!g_IsAcceptInputTrampolineInitialized) InitAcceptInputTrampoline();
if (!g_IsCMFlagHookInitialized && client->GetChallengeStatus() == CMStatus::CHALLENGE) InitCMFlagHook();
if (!g_IsPlayerRunCommandHookInitialized) InitPlayerRunCommandHook();
Expand Down

0 comments on commit bb3ba0e

Please sign in to comment.