X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_world.qc;h=2812da09d08cd5b6e26a3c9407bc43d17bdf3a3b;hb=fb5876e8defeb6af31e62002be26bdfa2beb56a7;hp=ccba885f1eab7211098111a9d6eb2ca270ba2a82;hpb=2293c182dc687c3d6284e588028163122a57df5d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index ccba885f1..2812da09d 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -53,7 +53,7 @@ void PingPLReport_Think(entity this) this.nextthink = time + delta; e = edict_num(this.cnt + 1); - if(IS_REAL_CLIENT(e) && IS_CLIENT(e)) + if(IS_CLIENT(e) && IS_REAL_CLIENT(e)) { WriteHeader(MSG_BROADCAST, TE_CSQC_PINGPLREPORT); WriteByte(MSG_BROADCAST, this.cnt); @@ -1330,8 +1330,8 @@ void IntermissionThink(entity this) { FixIntermissionClient(this); - float server_screenshot = (autocvar_sv_autoscreenshot && this.cvar_cl_autoscreenshot); - float client_screenshot = (this.cvar_cl_autoscreenshot == 2); + float server_screenshot = (autocvar_sv_autoscreenshot && CS(this).cvar_cl_autoscreenshot); + float client_screenshot = (CS(this).cvar_cl_autoscreenshot == 2); if( (server_screenshot || client_screenshot) && ((this.autoscreenshot > 0) && (time > this.autoscreenshot)) )