From 11b0ebbe4afffc215f95db05201b9728b4fcc7a1 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 10 Jul 2010 14:14:54 +0200 Subject: [PATCH 1/1] Fix wrong messages in the console (and in the weapons panel too) playing certain game modes, telling you "You do not have the weapon X" instead of "The weapon X is NOT AVAILABLE in this map", for really not available weapons. It can be easily noticed in minstagib. --- qcsrc/server/t_items.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 6f3347b5e5..caa7c21192 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -795,8 +795,6 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, self.is_item = TRUE; } - weaponsInMap |= weaponid; - if(g_lms || g_ca) { startitem_failed = TRUE; @@ -826,6 +824,8 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime, return; } + weaponsInMap |= weaponid; + precache_model (itemmodel); precache_sound (pickupsound); precache_sound ("misc/itemrespawn.wav"); -- 2.39.2