Allow reading ticcmd latency
This commit is contained in:
parent
abc479980c
commit
0b1cc92f1a
|
@ -743,6 +743,8 @@ static int ticcmd_get(lua_State *L)
|
||||||
lua_pushinteger(L, cmd->buttons);
|
lua_pushinteger(L, cmd->buttons);
|
||||||
else if (fastcmp(field,"driftturn"))
|
else if (fastcmp(field,"driftturn"))
|
||||||
lua_pushinteger(L, cmd->driftturn);
|
lua_pushinteger(L, cmd->driftturn);
|
||||||
|
else if (fastcmp(field,"latency"))
|
||||||
|
lua_pushinteger(L, cmd->latency);
|
||||||
else
|
else
|
||||||
return NOFIELD;
|
return NOFIELD;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue