From: Rudolf Polzer Date: Sat, 20 Aug 2011 15:42:04 +0000 (+0200) Subject: add comments X-Git-Tag: xonotic-v0.5.0~111^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1a3fcae86f365d8c23f453c9ce95c45797c3dc82;p=xonotic%2Fxonotic-data.pk3dir.git add comments --- diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index e279ca435..63ba50d5b 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -21,6 +21,7 @@ void WeaponStats_ready(entity fh, entity pass, float status) switch(status) { case URL_READY_CANWRITE: + // url_fopen returned, we can write prefix = strcat(autocvar_hostname, "\t", GetGametype(), "_", GetMapname(), "\t"); url_fputs(fh, "#begin statsfile\n"); url_fputs(fh, strcat("#date ", strftime(TRUE, "%a %b %e %H:%M:%S %Z %Y"), "\n")); @@ -47,6 +48,8 @@ void WeaponStats_ready(entity fh, entity pass, float status) weaponstats_buffer = -1; break; 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"); while((s = url_fgets(fh))) print(" ", s, "\n"); @@ -54,6 +57,7 @@ void WeaponStats_ready(entity fh, entity pass, float status) url_fclose(fh, WeaponStats_ready, world); break; case URL_READY_CLOSED: + // url_fclose has finished print("Weapon stats written\n"); break; case URL_READY_ERROR: