From: Rudolf Polzer Date: Tue, 4 May 2010 13:48:00 +0000 (+0200) Subject: fix weapon throwing breakage X-Git-Tag: xonotic-v0.1.0preview~612^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1804d540a9a7b617e19119f6070d674f09758c9;p=xonotic%2Fxonotic-data.pk3dir.git fix weapon throwing breakage --- diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 9d32f3234..d9c324060 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -682,6 +682,9 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, { startitem_failed = FALSE; + self.items = itemid; + self.weapons = weaponid; + // is it a dropped weapon? if (self.classname == "droppedweapon") { @@ -702,9 +705,6 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, } else { - self.items = itemid; - self.weapons = weaponid; - if(MUTATOR_CALLHOOK(FilterItem)) // error means we do not want the item { startitem_failed = TRUE;