From: Mircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Tue, 10 May 2011 17:21:48 +0000 (+0300)
Subject: Apply the glowmod to dropped weapons
X-Git-Tag: xonotic-v0.5.0~263^2~11^2~5
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1436d2738abf06e828a4bb185f679e4aeb7c4689;p=xonotic%2Fxonotic-data.pk3dir.git

Apply the glowmod to dropped weapons
---

diff --git a/qcsrc/server/cl_weapons.qc b/qcsrc/server/cl_weapons.qc
index 61b7e6ff8..077d839a5 100644
--- a/qcsrc/server/cl_weapons.qc
+++ b/qcsrc/server/cl_weapons.qc
@@ -197,6 +197,7 @@ string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vecto
 		self = oldself;
 		if(startitem_failed)
 			return string_null;
+		wep.glowmod = own.weaponentity_glowmod;
 		wep.think = thrown_wep_think;
 		wep.nextthink = time + 0.5;
 		return "";
@@ -232,6 +233,7 @@ string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vecto
 			}
 			s = substring(s, 5, -1);
 		}
+		wep.glowmod = own.weaponentity_glowmod;
 		wep.think = thrown_wep_think;
 		wep.nextthink = time + 0.5;
 		return s;