openbsd-ports/games/f1spirit/patches/patch-sources_F1SpiritGame_cpp
landry 46b9c5dbb7 Import f1spirit, a remake of Konami's original F1-Spirit from 1987.
F-1 Spirit is a racing game. You will race with many different types
of cars, starting by Stock or Rally cars, and finishing by driving F1
cars (once you have classified for it by passing for F3, F3000 and
Endurance cars).

Note that this requires DRI, the game is barely usable otherwise.
2009-03-19 18:30:30 +00:00

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);