freebsd-ports/games/f1spirit-remake/files/patch-sources-F1SpiritGame.cpp
Martin Wilke 3cb8ed77a3 The F-1 Spirit remake is mostly identical to the original Konami
classic F-1 Spirit game in that you first have to clear tracks in
a top-down view with stock cars, rally cars and so on by accumulating
points given for finishing in the first places until you actually
get to play the Formula 1 tracks.

Otherwise there are quite some enhancements, namely improved graphics,
improved music, more realistic physics, real shape shown in the
maps, camera rotation and zoom, split screen for up to four players,
(online) highscore tables and replay saving.

WWW: http://www.braingames.getput.com/f1spirit/default.asp

PR:		ports/123686
Submitted by:	Dmitry Marakasov <amdmi3 at amdmi3.ru>
2008-05-18 00:02:03 +00:00

12 lines
403 B
C++

--- sources/F1SpiritGame.cpp.orig 2006-02-18 13:33:34.000000000 +0300
+++ sources/F1SpiritGame.cpp 2008-05-17 04:03:21.000000000 +0400
@@ -1615,7 +1615,8 @@
struct tm *today;
gettimeofday(&ttime, NULL);
- today=localtime(&(ttime.tv_sec));
+ time_t tmp = ttime.tv_sec;
+ today=localtime(&tmp);
fputc(today->tm_year,replay_fp);
fputc(today->tm_mon,replay_fp);