summaryrefslogtreecommitdiff
path: root/src/server/sv_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/sv_main.c')
-rw-r--r--src/server/sv_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c
index 860a0cdb..7b3d8d46 100644
--- a/src/server/sv_main.c
+++ b/src/server/sv_main.c
@@ -538,6 +538,7 @@ static void SVC_Status( netadr_t from ) {
char status[MAX_MSGLEN];
int i;
client_t *cl;
+ playerState_t *ps;
int statusLength;
int playerLength;
char infostring[MAX_INFO_STRING];
@@ -577,8 +578,9 @@ static void SVC_Status( netadr_t from ) {
for (i=0 ; i < sv_maxclients->integer ; i++) {
cl = &svs.clients[i];
if ( cl->state >= CS_CONNECTED ) {
- Com_sprintf (player, sizeof(player), "0 %i \"%s\"\n",
- cl->ping, cl->name);
+ ps = SV_GameClientNum( i );
+ Com_sprintf (player, sizeof(player), "%i %i \"%s\"\n",
+ ps->persistant[PERS_SCORE], cl->ping, cl->name);
playerLength = strlen(player);
if (statusLength + playerLength >= sizeof(status) ) {
break; // can't hold any more