]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 479756d42939a9e08dc67e9aa9b1cb403e5a4b2e..13ae3ef10e8a6a3d4d730f05e9965dceb2b1b179 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 3a69a2eee5aa47e2b8ee8d82c7b3dd76f3820162..f6b79eb8f340ec651ffb241b269c55cae4ae8968 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 aefe59927c5afce48d5d199950765fbb4b8091b7..988244816c94534c554e221fd26773e3f9076b63 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);