]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update items when touching jumppads (fixes odd thrown weapon behaviour)
authorMario <mario@smbclan.net>
Thu, 17 Dec 2015 23:16:56 +0000 (09:16 +1000)
committerMario <mario@smbclan.net>
Thu, 17 Dec 2015 23:16:56 +0000 (09:16 +1000)
qcsrc/common/triggers/trigger/jumppads.qc

index cdd383e536216af459824fbfd2be574b3d33d848..8aa80a031259cce4b13f127db3c5a52d739e6747 100644 (file)
@@ -243,6 +243,12 @@ void trigger_push_touch()
                UpdateCSQCProjectile(other);
        }
 
+       if (other.flags & FL_ITEM)
+       {
+               ItemUpdate(other);
+               other.SendFlags |= ISF_DROP;
+       }
+
        if (this.spawnflags & PUSH_ONCE)
        {
                this.touch = func_null;