Skip to content

Commit

Permalink
Remove debug verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
dysphie committed Aug 18, 2023
1 parent 5e89452 commit 10fbd5e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripting/map-translator/detours.sp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ DynamicDetour hudHintDetour;

void TryEnableDetours()
{
PrintToServer("TryEnableDetours");
GameData gamedata = new GameData("map-translator.games");
if (!gamedata)
{
Expand All @@ -25,14 +24,11 @@ void TryEnableDetours()
hudHintDetour = RegMessageDetour(gamedata, "CEnvHudHint::InputShowHudHint",
Detour_HudHintShowPre, Detour_HudHintShowPost, "env_hudhint");

PrintToServer("game is %d", g_Game);
if (g_Game == GAME_NMRIH)
{
pointTextDetour = RegMessageDetour(gamedata, "CPointMessageMultiplayer::SendMessage",
Detour_PointMessageMpPre, Detour_PointMessageMpPost, "point_message_multiplayer");

PrintToServer("pointTextDetour after detour: %d", pointTextDetour);

hudHintDetour = RegMessageDetour(gamedata, "CEnvInstructorHint::InputShowHint",
Detour_InstructorHintShowPre, Detour_InstructorHintShowPost, "env_instructor_hint");
}
Expand Down

0 comments on commit 10fbd5e

Please sign in to comment.