Allow reading ticcmd latency

This commit is contained in:
fickleheart 2019-03-16 02:19:43 -05:00
parent abc479980c
commit 0b1cc92f1a
1 changed files with 2 additions and 0 deletions

View File

@ -743,6 +743,8 @@ static int ticcmd_get(lua_State *L)
lua_pushinteger(L, cmd->buttons);
else if (fastcmp(field,"driftturn"))
lua_pushinteger(L, cmd->driftturn);
else if (fastcmp(field,"latency"))
lua_pushinteger(L, cmd->latency);
else
return NOFIELD;