]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix wrong messages in the console (and in the weapons panel too) playing certain...
authorterencehill <piuntn@gmail.com>
Sat, 10 Jul 2010 12:14:54 +0000 (14:14 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 10 Jul 2010 12:14:54 +0000 (14:14 +0200)
It can be easily noticed in minstagib.

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");