]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Only return map items to spawn origin, not dropped ones
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 19:03:45 +0000 (22:03 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Apr 2012 19:03:45 +0000 (22:03 +0300)
qcsrc/server/mutators/mutator_physical_weapons.qc

index 9d83e9a06b4004f21240f753a28445f56e380c94..71d2f753d4cd992f3e611519ada85672c33d7d64 100644 (file)
@@ -37,6 +37,7 @@ void thrown_wep_ode_think()
 
 void thrown_wep_ode_touch()
 {
+       if(!self.cnt) // not for dropped items
        if (ITEM_TOUCH_NEEDKILL())
        {
                setorigin(self, self.spawn_origin);