File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
GeneralsMD/Code/GameEngine/Source/Common
Generals/Code/GameEngine/Source/Common Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ const char *replayExtention = ".rep";
5757const char *lastReplayFileName = " 00000000" ; // a name the user is unlikely to ever type, but won't cause panic & confusion
5858
5959// TheSuperHackers @tweak helmutbuhler 25/04/2025
60- // The replay header contains two time elements startTime and endTime of type time_t.
61- // On VC6 this was 32- bit, but on newer compilers it's 64- bit. In order to remain compatible
62- // we need to load and save them as 32-bit and use this type for that .
63- // Note that this will overflow on January 18, 2038.
60+ // The replay header contains two time fields; startTime and endTime of type time_t.
61+ // time_t is 32 bit wide on VC6 , but on newer compilers it is 64 bit wide.
62+ // In order to remain compatible we need to load and save time values with 32 bits .
63+ // Note that this will overflow on January 18, 2038. @todo Upgrade to 64 bits when we break compatibility.
6464typedef int32_t replay_time_t ;
6565
6666static time_t startTime;
Original file line number Diff line number Diff line change @@ -57,10 +57,10 @@ const char *replayExtention = ".rep";
5757const char *lastReplayFileName = " 00000000" ; // a name the user is unlikely to ever type, but won't cause panic & confusion
5858
5959// TheSuperHackers @tweak helmutbuhler 25/04/2025
60- // The replay header contains two time elements startTime and endTime of type time_t.
61- // On VC6 this was 32- bit, but on newer compilers it's 64- bit. In order to remain compatible
62- // we need to load and save them as 32-bit and use this type for that .
63- // Note that this will overflow on January 18, 2038.
60+ // The replay header contains two time fields; startTime and endTime of type time_t.
61+ // time_t is 32 bit wide on VC6 , but on newer compilers it is 64 bit wide.
62+ // In order to remain compatible we need to load and save time values with 32 bits .
63+ // Note that this will overflow on January 18, 2038. @todo Upgrade to 64 bits when we break compatibility.
6464typedef int32_t replay_time_t ;
6565
6666static time_t startTime;
You can’t perform that action at this time.
0 commit comments