From 354758d2fc3d72ef90919d05397b3a03430a0b92 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Mon, 19 Mar 2018 14:09:34 +0300 Subject: [PATCH] Delete prespawned item if it is not allowed. --- qcsrc/common/items/item.qh | 2 ++ 1 file changed, 2 insertions(+) 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); \ -- 2.39.2