X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Fgeneric.qc;h=2fcdf0c351052c30443ed871d2ea59d1e672fd82;hp=90d6cefe7bb4d0ac7819f9eecdb5edd859ab966b;hb=4ee2807b2d8f808928ef14b3e814945b3edb4350;hpb=118e6c304a242d2de95978fdbf593a62c9d86073 diff --git a/qcsrc/common/command/generic.qc b/qcsrc/common/command/generic.qc index 90d6cefe7..2fcdf0c35 100644 --- a/qcsrc/common/command/generic.qc +++ b/qcsrc/common/command/generic.qc @@ -1,4 +1,5 @@ -#include "all.qh" +#include "_mod.qh" +#include "reg.qh" #include "markup.qh" #include "rpn.qh" @@ -14,10 +15,7 @@ #endif #ifdef SVQC - #include - #include - #include - #include + #include #include #include #endif @@ -36,7 +34,7 @@ void Curl_URI_Get_Callback(int id, float status, string data) string do_cvar = curl_uri_get_cvar[i]; if(status != 0) { - LOG_TRACEF("error: status is %d\n", status); + LOG_TRACEF("error: status is %d", status); if(do_cvar) strunzone(do_cvar); return; @@ -426,9 +424,9 @@ void GenericCommand_settemp(float request, float argc) { float f = cvar_settemp(argv(1), argv(2)); if(f == 1) - LOG_TRACE("Creating new settemp tracker for ", argv(1), " and setting it to \"", argv(2), "\" temporarily.\n"); + LOG_TRACE("Creating new settemp tracker for ", argv(1), " and setting it to \"", argv(2), "\" temporarily."); else if(f == -1) - LOG_TRACE("Already had a tracker for ", argv(1), ", updating it to \"", argv(2), "\".\n"); + LOG_TRACE("Already had a tracker for ", argv(1), ", updating it to \"", argv(2), "\"."); // else cvar_settemp itself errors out return; @@ -456,9 +454,9 @@ void GenericCommand_settemp_restore(float request, float argc) float i = cvar_settemp_restore(); if(i) - LOG_TRACE("Restored ", ftos(i), " temporary cvar settings to their original values.\n"); + LOG_TRACE("Restored ", ftos(i), " temporary cvar settings to their original values."); else - LOG_TRACE("Nothing to restore.\n"); + LOG_TRACE("Nothing to restore."); return; }