]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
STAT_TOTALSECRETS and STAT_TOTALMONSTERS are now networked so deathmatch 7 mode in...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jan 2007 18:34:13 +0000 (18:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 22 Jan 2007 18:34:13 +0000 (18:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6730 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 6e03daf1bd74fc90c4b201b9681e44a2efcf9196..5f2a6911c447f9c40a8c7dd24ba206a4ab1b8b00 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1107,10 +1107,10 @@ void SV_WriteClientdataToMessage (client_t *client, prvm_edict_t *ent, sizebuf_t
        stats[STAT_CELLS] = (int)ent->fields.server->ammo_cells;
        stats[STAT_ACTIVEWEAPON] = (int)ent->fields.server->weapon;
        stats[STAT_VIEWZOOM] = viewzoom;
+       stats[STAT_TOTALSECRETS] = prog->globals.server->total_secrets;
+       stats[STAT_TOTALMONSTERS] = prog->globals.server->total_monsters;
        // the QC bumps these itself by sending svc_'s, so we have to keep them
        // zero or they'll be corrected by the engine
-       //stats[STAT_TOTALSECRETS] = prog->globals.server->total_secrets;
-       //stats[STAT_TOTALMONSTERS] = prog->globals.server->total_monsters;
        //stats[STAT_SECRETS] = prog->globals.server->found_secrets;
        //stats[STAT_MONSTERS] = prog->globals.server->killed_monsters;