From b912ba995c2175b00393f95388ae2ec1afd0494b Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 17 Jun 2025 20:10:41 -0300 Subject: TPlayer constructor and destructor --- src/time.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/time.cc') diff --git a/src/time.cc b/src/time.cc index 0003c39..ad42c47 100644 --- a/src/time.cc +++ b/src/time.cc @@ -1,7 +1,5 @@ #include "common.hh" -#include - // IMPORTANT(fusion): `RoundNr` is just the number of seconds since startup which // is why `GetRoundAtTime` and `GetRoundForNextMinute` straight up uses it as // seconds. It is incremented every 1 second inside `AdvanceGame`. @@ -12,12 +10,12 @@ uint32 ServerMilliseconds = 0; // NOTE(fusion): This isn't strictly required because each server process is // single threaded and don't share static memory, which is what the result of // the regular `localtime` function uses. -static struct tm GetLocalTimeTM(time_t timer){ +struct tm GetLocalTimeTM(time_t t){ struct tm result; #if COMPILER_MSVC - localtime_s(&result, &timer); + localtime_s(&result, &t); #else - localtime_r(&timer, &result); + localtime_r(&t, &result); #endif return result; } -- cgit v1.2.3