]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Delete prespawned item if it is not allowed.
authorLyberta <lyberta@lyberta.net>
Mon, 19 Mar 2018 11:09:34 +0000 (14:09 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 19 Mar 2018 11:09:34 +0000 (14:09 +0300)
qcsrc/common/items/item.qh

index effbf0c7eb2878ce67b63cc218c065e895c400ad..e59152076b754552eb266411710fdbab1e4efcbb 100644 (file)
@@ -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); \