mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Added a new CON command:
getticks <VAR> It's isn't synced and should be using for animation and profiling(=speed measure). Using it for gameplay will desync multiplayer game. git-svn-id: https://svn.eduke32.com/eduke32@797 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2922adb278
commit
fa46b7d155
3 changed files with 9 additions and 0 deletions
|
@ -452,6 +452,7 @@ static const char *keyw[] =
|
||||||
"readarrayfromfile", // 320
|
"readarrayfromfile", // 320
|
||||||
"starttrackvar", // 321
|
"starttrackvar", // 321
|
||||||
"qgetsysstr", // 322
|
"qgetsysstr", // 322
|
||||||
|
"getticks", // 323
|
||||||
"<null>"
|
"<null>"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3284,6 +3285,7 @@ static int parsecommand(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case CON_GETTICKS:
|
||||||
case CON_GETCURRADDRESS:
|
case CON_GETCURRADDRESS:
|
||||||
transvartype(GAMEVAR_FLAG_READONLY);
|
transvartype(GAMEVAR_FLAG_READONLY);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -812,4 +812,5 @@ enum keywords
|
||||||
CON_READARRAYFROMFILE, // 320
|
CON_READARRAYFROMFILE, // 320
|
||||||
CON_STARTTRACKVAR, // 321
|
CON_STARTTRACKVAR, // 321
|
||||||
CON_QGETSYSSTR, // 322
|
CON_QGETSYSSTR, // 322
|
||||||
|
CON_GETTICKS // 323
|
||||||
};
|
};
|
||||||
|
|
|
@ -7349,6 +7349,12 @@ static int parse(void)
|
||||||
hittype[g_i].flags = GetGameVarID(*insptr++, g_i, g_p);
|
hittype[g_i].flags = GetGameVarID(*insptr++, g_i, g_p);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CON_GETTICKS:
|
||||||
|
insptr++;
|
||||||
|
j=*insptr++;
|
||||||
|
SetGameVarID(j, getticks(), g_i, g_p);
|
||||||
|
break;
|
||||||
|
|
||||||
case CON_GETCURRADDRESS:
|
case CON_GETCURRADDRESS:
|
||||||
insptr++;
|
insptr++;
|
||||||
j=*insptr++;
|
j=*insptr++;
|
||||||
|
|
Loading…
Reference in a new issue