From: terencehill <piuntn@gmail.com>
Date: Sat, 22 Jun 2024 16:54:01 +0000 (+0200)
Subject: Fix arc beam wrongly showing an impact if fired at certain angles and with a small... 
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f77a6fedcd4e923cb64ae3f0de043b9fdef8b6b8;p=xonotic%2Fxonotic-data.pk3dir.git

Fix arc beam wrongly showing an impact if fired at certain angles and with a small beam range (e.g. g_balance_arc_beam_range 80)
---

diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc
index 6fda13104..39066bb14 100644
--- a/qcsrc/common/weapons/weapon/arc.qc
+++ b/qcsrc/common/weapons/weapon/arc.qc
@@ -1166,7 +1166,7 @@ void Draw_ArcBeam(entity this)
 	// visual effects for startpoint and endpoint
 	if(this.beam_hiteffect)
 	{
-		if((trace_ent || trace_fraction < 1) && !(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT))
+		if(trace_fraction < 1 && !(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NOIMPACT))
 		pointparticles(
 			this.beam_hiteffect,
 			last_origin,