From: Raphael Kubo da Costa Date: Fri, 4 Dec 2015 16:10:45 +0000 (-0200) Subject: Use time_t to store time data. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7611c488c2d06a6bdbe5f7b26a47e15f1bd55eb8;p=quix0rs-blobwars.git Use time_t to store time data. 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*)' --- diff --git a/src/CReplayDataHeader.h b/src/CReplayDataHeader.h index 9d7c1b3..db7d5a1 100644 --- a/src/CReplayDataHeader.h +++ b/src/CReplayDataHeader.h @@ -1,7 +1,7 @@ struct ReplayDataHeader { char map[PATH_MAX]; - long randomSeed; + time_t randomSeed; float version; int release; int skill;