The Dink Network

Reply to Re: speedrun

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 10th 2016, 07:52 AM
dinkdead.gif
millimeter
Peasant He/Him Canada
Millimeter is Wee-Lamm, Recording Artist. :-) 
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?