Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0k-z committed Nov 9, 2023
1 parent 3cdc28d commit 96c48b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/movement/mv_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,12 @@ void MovementPlayer::StartZoneStartTouch()

void MovementPlayer::StartZoneEndTouch()
{
DEBUG_PRINT(MovementPlayer::StartZoneEndTouch);
this->timerStartTick = this->tickCount;
this->timerIsRunning = true;
DEBUG_PRINT(PlaySoundToClient);
utils::PlaySoundToClient(this->GetPlayerSlot(), MV_SND_TIMER_START);
DEBUG_PRINT(PlaySoundToClient);
}

// TODO: make a function like OnTimerEnd?
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,6 @@ void utils::DebugPrint(const char *string, bool post)
{
if (utils::GetServerGlobals()->curtime < debugUntil)
{
META_CONPRINTF("%s%s\n", string, post ? "_pre" : "_post");
META_CONPRINTF("%s%s\n", string, post ? "_post" : "_pre");
}
}

0 comments on commit 96c48b2

Please sign in to comment.