void Command_Ping_f(void) { #ifndef NEWPING if(server) { #endif INT32 i; for (i = 0; i < MAXPLAYERS;i++) { #ifndef NEWPING const INT32 node = playernode[i]; if (playeringame[i] && node != 0) CONS_Printf(M_GetText("%.2d : %s\n %d tics, %d ms.\n"), i, player_names[i], GetLag(node), G_TicsToMilliseconds(GetLag(node))); #else if (playeringame[i] && i != 0) CONS_Printf(M_GetText("%.2d : %s\n %d ms\n"), i, player_names[i], playerpingtable[i]); #endif } #ifndef NEWPING } else CONS_Printf(M_GetText("Only the server can use this.\n")); #endif }
void Command_Ping_f(void) { #ifndef NEWPING if(server) { #endif INT32 i; for (i = 0; i < MAXPLAYERS;i++) { #ifndef NEWPING const INT32 node = playernode[i]; if (playeringame[i] && node != 0) CONS_Printf(text[CMD_PING], i, player_names[i], GetLag(node), G_TicsToMilliseconds(GetLag(node))); #else if (playeringame[i] && i != 0) CONS_Printf(text[CMD_PING], i, player_names[i], playerpingtable[i]); #endif } #ifndef NEWPING } else CONS_Printf("%s", text[YOUARENOTTHESERVER]); #endif }