From: Mario Date: Thu, 17 Dec 2015 23:16:56 +0000 (+1000) Subject: Update items when touching jumppads (fixes odd thrown weapon behaviour) X-Git-Tag: xonotic-v0.8.2~1479 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b058f0eb96621b1cbdd58caf1eef9236d92c4913;p=xonotic%2Fxonotic-data.pk3dir.git Update items when touching jumppads (fixes odd thrown weapon behaviour) --- diff --git a/qcsrc/common/triggers/trigger/jumppads.qc b/qcsrc/common/triggers/trigger/jumppads.qc index cdd383e53..8aa80a031 100644 --- a/qcsrc/common/triggers/trigger/jumppads.qc +++ b/qcsrc/common/triggers/trigger/jumppads.qc @@ -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;