Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
Fix cl_showpos
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Dec 5, 2017
1 parent c9a7e2b commit 25fa306
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SourceAutoRecord/Modules/Client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ namespace Client
char ticks[64];
int tick = !*Engine::LoadGame ? Engine::GetCurrentTick() : 0;
float time = tick * *Engine::IntervalPerTick;
snprintf(ticks, sizeof(ticks), "ticks: %i (%.3fs)", tick, time);
if (Summary::HasStarted)
snprintf(ticks, sizeof(ticks), "ticks: %i (%.3fs) | total: %i (%.3f)", tick, time, Summary::TotalTicks, Summary::TotalTime);
else
snprintf(ticks, sizeof(ticks), "ticks: %i (%.3fs)", tick, time);
Surface::Draw(font, 1, 65, COL_WHITE, ticks);

Surface::Draw(font, 1, 75, COL_WHITE, "Test");

return Original::Paint(thisptr);
}
}
Expand Down

0 comments on commit 25fa306

Please sign in to comment.