Fix wrong messages in the console (and in the weapons panel too) playing certain...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_items.qc
index 6f3347b5e5186e47c509be56b1ac65d85ea58c73..caa7c2119272e1d766bea2f471e7e2b150761d89 100644 (file)
@@ -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");