mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-06 09:21:27 +00:00
Call the Lua timestamp function getTimeMicros
This commit is contained in:
parent
270c7701b4
commit
56c5a887c8
1 changed files with 2 additions and 2 deletions
|
@ -3877,7 +3877,7 @@ static int lib_gTicsToMilliseconds(lua_State *L)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int lib_iGetTimestamp(lua_State *L)
|
static int lib_getTimeMicros(lua_State *L)
|
||||||
{
|
{
|
||||||
lua_pushinteger(L, I_PreciseToMicros(I_GetPreciseTime()));
|
lua_pushinteger(L, I_PreciseToMicros(I_GetPreciseTime()));
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -4157,7 +4157,7 @@ static luaL_Reg lib[] = {
|
||||||
{"G_TicsToCentiseconds",lib_gTicsToCentiseconds},
|
{"G_TicsToCentiseconds",lib_gTicsToCentiseconds},
|
||||||
{"G_TicsToMilliseconds",lib_gTicsToMilliseconds},
|
{"G_TicsToMilliseconds",lib_gTicsToMilliseconds},
|
||||||
|
|
||||||
{"I_GetTimestamp",lib_iGetTimestamp},
|
{"getTimeMicros",lib_getTimeMicros},
|
||||||
|
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue