From 85a2fb9c56c1942958c09c8aeafd14ddefb6e0c3 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Mon, 4 Mar 2024 00:12:05 +0000 Subject: Address C4100 compiler warnings (unused var) (#648) Adds and uses a macro to avoid the warning --- primedev/shared/exploit_fixes/ns_limits.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'primedev/shared/exploit_fixes/ns_limits.cpp') diff --git a/primedev/shared/exploit_fixes/ns_limits.cpp b/primedev/shared/exploit_fixes/ns_limits.cpp index bd855ee4..63abbf69 100644 --- a/primedev/shared/exploit_fixes/ns_limits.cpp +++ b/primedev/shared/exploit_fixes/ns_limits.cpp @@ -16,6 +16,7 @@ float (*CEngineServer__GetTimescale)(); // todo: make this work on higher timescales, also possibly disable when sv_cheats is set void ServerLimitsManager::RunFrame(double flCurrentTime, float flFrameTime) { + NOTE_UNUSED(flCurrentTime); if (Cvar_sv_antispeedhack_enable->GetBool()) { // for each player, set their usercmd processing budget for the frame to the last frametime for the server -- cgit v1.2.3