From: Mario Date: Sun, 14 Dec 2014 23:13:48 +0000 (+1100) Subject: Hide some stat messages and fix an invalid particles cvar X-Git-Tag: xonotic-v0.8.0~83 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d63db545cc18f4ceb1cc8fb060d9a1965aca6d8c;p=xonotic%2Fxonotic-data.pk3dir.git Hide some stat messages and fix an invalid particles cvar --- diff --git a/qcsrc/common/playerstats.qc b/qcsrc/common/playerstats.qc index 479756d42..13ae3ef10 100644 --- a/qcsrc/common/playerstats.qc +++ b/qcsrc/common/playerstats.qc @@ -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)); diff --git a/qcsrc/menu/xonotic/dialog_settings_effects.c b/qcsrc/menu/xonotic/dialog_settings_effects.c index 3a69a2eee..f6b79eb8f 100644 --- a/qcsrc/menu/xonotic/dialog_settings_effects.c +++ b/qcsrc/menu/xonotic/dialog_settings_effects.c @@ -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); diff --git a/qcsrc/menu/xonotic/statslist.c b/qcsrc/menu/xonotic/statslist.c index aefe59927..988244816 100644 --- a/qcsrc/menu/xonotic/statslist.c +++ b/qcsrc/menu/xonotic/statslist.c @@ -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);