From 5a4aa95a9a34afe578333a9fcc5d21c8580b0328 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:24:01 +0000 Subject: * Print the real, current server time at start of games.log so real times can actually be obtained from the logs via offsetting instead of only having game times (thanks Pierre) --- src/game/g_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/game/g_main.c b/src/game/g_main.c index 1f284ea1..c7d975be 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -564,11 +564,19 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) else { char serverinfo[ MAX_INFO_STRING ]; + qtime_t qt; + int t; trap_GetServerinfo( serverinfo, sizeof( serverinfo ) ); G_LogPrintf( "------------------------------------------------------------\n" ); G_LogPrintf( "InitGame: %s\n", serverinfo ); + + t = trap_RealTime( &qt ); + G_LogPrintf("RealTime: %04i/%02i/%02i %02i:%02i:%02i\n", + qt.tm_year+1900, qt.tm_mon+1, qt.tm_mday, + qt.tm_hour, qt.tm_min, qt.tm_sec ); + } } else -- cgit