X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fimpulse.qc;h=588b794c812c35a22a45fc7ed88f0fcaf0010309;hb=98b2c4213abe04f3ec96a95471ba5fe5fe57e008;hp=efa0f8425b86cb89413b834e6fcfeadbbbbfbf2c;hpb=aaa298baa3cffa029d5f1c03a834549861fe31b1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/impulse.qc b/qcsrc/server/impulse.qc index efa0f8425..588b794c8 100644 --- a/qcsrc/server/impulse.qc +++ b/qcsrc/server/impulse.qc @@ -97,7 +97,7 @@ X(0) for(int wepslot = 0; wepslot < MAX_WEAPONSLOTS; ++wepslot) \ { \ .entity weaponentity = weaponentities[wepslot]; \ - W_CycleWeapon(this, this.cvar_cl_weaponpriorities[slot], dir, weaponentity); \ + W_CycleWeapon(this, CS(this).cvar_cl_weaponpriorities[slot], dir, weaponentity); \ if(wepslot == 0 && autocvar_g_weaponswitch_debug != 1) \ break; \ } \ @@ -352,9 +352,9 @@ void ImpulseCommands(entity this) { if (game_stopped) return; - int imp = this.impulse; + int imp = CS(this).impulse; if (!imp) return; - this.impulse = 0; + CS(this).impulse = 0; if (MinigameImpulse(this, imp)) return;