Hide some stat messages and fix an invalid particles cvar
authorMario <zacjardine@y7mail.com>
Sun, 14 Dec 2014 23:13:48 +0000 (10:13 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 14 Dec 2014 23:13:48 +0000 (10:13 +1100)
qcsrc/common/playerstats.qc
qcsrc/menu/xonotic/dialog_settings_effects.c
qcsrc/menu/xonotic/statslist.c

index 479756d..13ae3ef 100644 (file)
@@ -625,7 +625,7 @@ void PlayerStats_PlayerDetail_AddItem(string event, string data)
 
        // now actually set the event data
        db_put(PS_D_IN_DB, sprintf("#%s", event), data);
-       print("Added item ", sprintf("#%s", event), "=", data, " to PS_D_IN_DB\n");
+       dprint("Added item ", sprintf("#%s", event), "=", data, " to PS_D_IN_DB\n");
 }
 
 void PlayerStats_PlayerDetail(void)
@@ -641,7 +641,7 @@ void PlayerStats_PlayerDetail(void)
                }
 
                //uri = strcat(uri, "/player/", uri_escape(crypto_getmyidfp(0)));
-               print("Retrieving playerstats from URL: ", autocvar_g_playerstats_playerdetail_uri, "\n");
+               dprint("Retrieving playerstats from URL: ", autocvar_g_playerstats_playerdetail_uri, "\n");
                url_single_fopen(
                        autocvar_g_playerstats_playerdetail_uri,
                        FILE_APPEND,
@@ -696,7 +696,7 @@ void PlayerStats_PlayerDetail_Handler(entity fh, entity unused, float status)
        {
                case URL_READY_CANWRITE:
                {
-                       print("PlayerStats_PlayerDetail_Handler(): Sending data to player stats server...\n");
+                       dprint("PlayerStats_PlayerDetail_Handler(): Sending data to player stats server...\n");
                        url_fputs(fh, "V 1\n");
                        #ifdef WATERMARK
                        url_fputs(fh, sprintf("R %s\n", WATERMARK));
index 3a69a2e..f6b79eb 100644 (file)
@@ -144,7 +144,7 @@ void XonoticEffectsSettingsTab_fill(entity me)
                me.TDempty(me, 0.2);
                me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Distance:")));
                        setDependent(e, "cl_particles", 1, 1);
-               me.TD(me, 1, 2, e = makeXonoticSlider(200, 500, 20, "r_particles_drawdistance"));
+               me.TD(me, 1, 2, e = makeXonoticSlider(200, 500, 20, "r_drawparticles_drawdistance"));
                        setDependent(e, "cl_particles", 1, 1);
                me.TR(me);
                me.TDempty(me, 0.2);
index aefe599..9882448 100644 (file)
@@ -76,7 +76,7 @@ string XonoticStatsList_convertDate(string input)
 
 void XonoticStatsList_getStats(entity me)
 {
-       print("XonoticStatsList_getStats() at time: ", ftos(time), "\n");
+       dprint("XonoticStatsList_getStats() at time: ", ftos(time), "\n");
        // delete the old buffer if it exists
        if(me.listStats >= 0)
                buf_del(me.listStats);