Skip to content
Snippets Groups Projects
Commit b36ca89e authored by Jisk's avatar Jisk :cat: Committed by Sal
Browse files

Port player.ping from SRB2Kart

parent f13fddaf
No related branches found
No related tags found
1 merge request!2025Port player.ping from SRB2Kart
...@@ -222,6 +222,7 @@ enum player_e ...@@ -222,6 +222,7 @@ enum player_e
player_blocked, player_blocked,
player_jointime, player_jointime,
player_quittime, player_quittime,
player_ping,
#ifdef HWRENDER #ifdef HWRENDER
player_fovadd, player_fovadd,
#endif #endif
...@@ -368,6 +369,7 @@ static const char *const player_opt[] = { ...@@ -368,6 +369,7 @@ static const char *const player_opt[] = {
"blocked", "blocked",
"jointime", "jointime",
"quittime", "quittime",
"ping",
#ifdef HWRENDER #ifdef HWRENDER
"fovadd", "fovadd",
#endif #endif
...@@ -819,6 +821,9 @@ static int player_get(lua_State *L) ...@@ -819,6 +821,9 @@ static int player_get(lua_State *L)
case player_quittime: case player_quittime:
lua_pushinteger(L, plr->quittime); lua_pushinteger(L, plr->quittime);
break; break;
case player_ping:
lua_pushinteger(L, playerpingtable[plr - players]);
break;
#ifdef HWRENDER #ifdef HWRENDER
case player_fovadd: case player_fovadd:
lua_pushfixed(L, plr->fovadd); lua_pushfixed(L, plr->fovadd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment