diff options
| author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:24:01 +0000 | 
|---|---|---|
| committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:55 +0000 | 
| commit | 5a4aa95a9a34afe578333a9fcc5d21c8580b0328 (patch) | |
| tree | 9f0b53a81c0fad418fac99df3306797492ca48ce | |
| parent | bd58dfa62a3f5077ebe14b2fc73e590b45e47ee0 (diff) | |
* 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) 
| -rw-r--r-- | src/game/g_main.c | 8 | 
1 files changed, 8 insertions, 0 deletions
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  | 
