Reply to Re: speedrun
If you don't have an account, just leave the password field blank.
dinkvar.h
#include <time.h>
#include <direct.h>
#include <mmsystem.h>
#include <time.h>
//[Mm - I doubt the double inclusion directive is a problem but who knows.
void save_game(int num)
{
//[Mm - snip]
time_t ct;
time(&ct);
play.minutes += (difftime(ct,time_start) / 60);
//reset timer
time(&time_start);
See: http://en.cppreference.com/w/c/chrono/time_t
Perhaps, if we have coded our DMods inefficiently of unknowingly taken advantage of some bug, "just because our code worked", it could introduce a delay between the call to time_t and when it gets posted to the savegame?
#include <time.h>
#include <direct.h>
#include <mmsystem.h>
#include <time.h>
//[Mm - I doubt the double inclusion directive is a problem but who knows.
void save_game(int num)
{
//[Mm - snip]
time_t ct;
time(&ct);
play.minutes += (difftime(ct,time_start) / 60);
//reset timer
time(&time_start);
See: http://en.cppreference.com/w/c/chrono/time_t
Perhaps, if we have coded our DMods inefficiently of unknowingly taken advantage of some bug, "just because our code worked", it could introduce a delay between the call to time_t and when it gets posted to the savegame?