X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Farc.qc;h=99eb17d031b89453a0d2da13ec56fd7fedb83702;hp=e1796bdf235a4d6bee4873a3e53d9e95c1357048;hb=9ae63d858415772fdb60bd549758825103c0ba17;hpb=267433aa7d5dd80399b808f692b8bc1ef75f0851 diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc index e1796bdf2..99eb17d03 100644 --- a/qcsrc/common/weapons/weapon/arc.qc +++ b/qcsrc/common/weapons/weapon/arc.qc @@ -130,8 +130,8 @@ vector Draw_ArcBeam_callback_last_bottom; // NOTE: in same coordinate system as #ifdef SVQC spawnfunc(weapon_arc) { weapon_defaultspawnfunc(WEP_ARC.m_id); } -float W_Arc_Beam_Send(entity to, int sf) -{SELFPARAM(); +bool W_Arc_Beam_Send(entity this, entity to, int sf) +{ WriteByte(MSG_ENTITY, ENT_CLIENT_ARC_BEAM); // Truncate information when this beam is displayed to the owner client @@ -850,8 +850,8 @@ void Reset_ArcBeam(void) } } -void Draw_ArcBeam(void) -{SELFPARAM(); +void Draw_ArcBeam(entity this) +{ float dt = time - self.move_time; self.move_time = time; if(dt <= 0) { return; }