]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Use time_t to store time data.
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>
Fri, 4 Dec 2015 16:10:45 +0000 (14:10 -0200)
committerGuus Sliepen <guus@debian.org>
Fri, 4 Dec 2015 20:04:50 +0000 (21:04 +0100)
This fixes the build on 32-bit FreeBSD releases, which were failing like this:

src/CReplayData.cpp: In member function 'void ReplayData::printReplayInformation()':
src/CReplayData.cpp:41: error: invalid conversion from 'long int*' to 'const time_t*'
src/CReplayData.cpp:41: error:   initializing argument 1 of 'tm* localtime(const time_t*)'

src/CReplayDataHeader.h

index 9d7c1b3c166ffb30cf326513e536f87ce19f991e..db7d5a1722b42e492b8ffbccdfa390042723ff2f 100644 (file)
@@ -1,7 +1,7 @@
 struct ReplayDataHeader
 {
        char map[PATH_MAX];
-       long randomSeed;
+       time_t randomSeed;
        float version;
        int release;
        int skill;