19 lines
574 B
Plaintext
19 lines
574 B
Plaintext
|
$OpenBSD: patch-sources_F1SpiritGame_cpp,v 1.1.1.1 2009/03/19 18:30:30 landry Exp $
|
||
|
--- sources/F1SpiritGame.cpp.orig Sat Mar 7 12:31:29 2009
|
||
|
+++ sources/F1SpiritGame.cpp Sat Mar 7 12:31:59 2009
|
||
|
@@ -2262,11 +2262,12 @@ bool F1SpiritGame::cycle(KEYBOARDSTATE *k)
|
||
|
#else
|
||
|
|
||
|
struct timeval ttime;
|
||
|
-
|
||
|
+ struct timespec ts;
|
||
|
struct tm *today;
|
||
|
|
||
|
gettimeofday(&ttime, NULL);
|
||
|
- today = localtime(&(ttime.tv_sec));
|
||
|
+ ts.tv_sec = ttime.tv_sec;
|
||
|
+ today = localtime(&(ts.tv_sec));
|
||
|
|
||
|
fputc(today->tm_year, replay_fp);
|
||
|
fputc(today->tm_mon, replay_fp);
|