]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly copy colormap and glowmod
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 13:44:06 +0000 (16:44 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 13:44:06 +0000 (16:44 +0300)
qcsrc/server/mutators/mutator_physical_weapons.qc

index fa27a36a7a4aa69d477c68d1a26c9a3936cb5f2a..cbfc579018d75f386157c5cc1f9a0e0918f440f0 100644 (file)
@@ -25,8 +25,8 @@ MUTATOR_HOOKFUNCTION(item_spawning)
        wep.movetype = MOVETYPE_PHYSICS;
        wep.takedamage = DAMAGE_AIM;
        wep.effects |= EF_NOMODELFLAGS; // disable the spinning
-       wep.colormap = self.colormap;
-       wep.glowmod = self.glowmod;
+       wep.colormap = self.owner.colormap;
+       wep.glowmod = self.owner.glowmod;
        wep.damageforcescale = autocvar_g_ode_items_damageforcescale;
 
        wep.think = thrown_wep_ode_think;