From: Samual Date: Thu, 24 May 2012 16:09:49 +0000 (-0400) Subject: Fix small bug with damage function call X-Git-Tag: xonotic-v0.8.0~152^2~408^2~79 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=27b73fb7a8c8529e0bb3ed45e5c07172e1685b6b;p=xonotic%2Fxonotic-data.pk3dir.git Fix small bug with damage function call --- diff --git a/qcsrc/server/w_laser.qc b/qcsrc/server/w_laser.qc index e9ce3cdfb..89c2840d1 100644 --- a/qcsrc/server/w_laser.qc +++ b/qcsrc/server/w_laser.qc @@ -76,7 +76,7 @@ void W_Laser_Shockwave (void) center = aim_ent.origin + (aim_ent.mins + aim_ent.maxs) * 0.5; final_force = (normalize(center - attack_hitpos) * autocvar_g_balance_laser_primary_force); - Damage(aim_ent, self, self, autocvar_g_balance_laser_primary_damage, WEP_LASER, w_shotorg, final_force); + Damage(aim_ent, self, self, autocvar_g_balance_laser_primary_damage, WEP_LASER, aim_ent.origin, final_force); print("Player hit directly via aim!\n"); }