From: Lyberta Date: Mon, 19 Mar 2018 11:09:34 +0000 (+0300) Subject: Delete prespawned item if it is not allowed. X-Git-Tag: xonotic-v0.8.5~2207^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=354758d2fc3d72ef90919d05397b3a03430a0b92;p=xonotic%2Fxonotic-data.pk3dir.git Delete prespawned item if it is not allowed. --- diff --git a/qcsrc/common/items/item.qh b/qcsrc/common/items/item.qh index effbf0c7e..e59152076 100644 --- a/qcsrc/common/items/item.qh +++ b/qcsrc/common/items/item.qh @@ -56,6 +56,8 @@ const int IT_PICKUPMASK = IT_UNLIMITED_AMMO | IT_JETPACK | IT_FU { \ if (!Item_IsDefinitionAllowed(item)) \ { \ + startitem_failed = true; \ + delete(this); \ return; \ } \ StartItem(this, item); \