X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fweaponstats.qc;h=296d10fa6bd0bef9b26f857c6e86ed4db684b9f7;hb=b9ed1a38cd897084d0ed8beb6033a761e095d64d;hp=a84969904a300fbe57bbeba78039b967141eea25;hpb=5b3d38ffdd942aa1647d747e8e6e4605df39cb82;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/weaponstats.qc b/qcsrc/server/weapons/weaponstats.qc index a84969904..296d10fa6 100644 --- a/qcsrc/server/weapons/weaponstats.qc +++ b/qcsrc/server/weapons/weaponstats.qc @@ -1,10 +1,10 @@ #include "weaponstats.qh" -#include "../_all.qh" +#include +#include #include "../g_world.qh" -#include "../../common/urllib.qh" -#include "../../common/weapons/all.qh" +#include void WeaponStats_Init() { @@ -49,21 +49,21 @@ void WeaponStats_ready(entity fh, entity pass, float status) case URL_READY_CANREAD: // url_fclose is processing, we got a response for writing the data // this must come from HTTP - print("Got response from weapon stats server:\n"); + LOG_INFO("Got response from weapon stats server:"); while((s = url_fgets(fh))) - print(" ", s, "\n"); - print("End of response.\n"); + LOG_INFO(" ", s); + LOG_INFO("End of response."); url_fclose(fh); break; case URL_READY_CLOSED: // url_fclose has finished - print("Weapon stats written\n"); + LOG_INFO("Weapon stats written"); buf_del(weaponstats_buffer); weaponstats_buffer = -1; break; case URL_READY_ERROR: default: - print("Weapon stats writing failed: ", ftos(status), "\n"); + LOG_INFO("Weapon stats writing failed: ", ftos(status)); buf_del(weaponstats_buffer); weaponstats_buffer = -1; break; @@ -76,7 +76,7 @@ void WeaponStats_Shutdown() return; if(autocvar_sv_weaponstats_file != "") { - url_multi_fopen(autocvar_sv_weaponstats_file, FILE_APPEND, WeaponStats_ready, world); + url_multi_fopen(autocvar_sv_weaponstats_file, FILE_APPEND, WeaponStats_ready, NULL); } else {