mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-21 19:11:06 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@962 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a55cc4479a
commit
c2356cceb9
6 changed files with 39 additions and 17 deletions
|
@ -6111,6 +6111,28 @@ static int parse(void)
|
|||
break;
|
||||
}
|
||||
|
||||
case CON_GETTIMEDATE:
|
||||
insptr++;
|
||||
{
|
||||
int v1=*insptr++,v2=*insptr++,v3=*insptr++,v4=*insptr++,v5=*insptr++,v6=*insptr++,v7=*insptr++,v8=*insptr++;
|
||||
time_t rawtime;
|
||||
struct tm * ti;
|
||||
|
||||
time(&rawtime);
|
||||
ti=localtime(&rawtime);
|
||||
// initprintf("Time&date: %s\n",asctime (ti));
|
||||
|
||||
SetGameVarID(v1, ti->tm_sec, g_i, g_p);
|
||||
SetGameVarID(v2, ti->tm_min, g_i, g_p);
|
||||
SetGameVarID(v3, ti->tm_hour, g_i, g_p);
|
||||
SetGameVarID(v4, ti->tm_mday, g_i, g_p);
|
||||
SetGameVarID(v5, ti->tm_mon, g_i, g_p);
|
||||
SetGameVarID(v6, ti->tm_year+1900, g_i, g_p);
|
||||
SetGameVarID(v7, ti->tm_wday, g_i, g_p);
|
||||
SetGameVarID(v8, ti->tm_yday, g_i, g_p);
|
||||
break;
|
||||
}
|
||||
|
||||
case CON_MOVESPRITE:
|
||||
case CON_SETSPRITE:
|
||||
insptr++;
|
||||
|
|
Loading…
Reference in a new issue