projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
606b7d7
)
fix weapon throwing breakage
author
Rudolf Polzer <divverent@alientrap.org>
Tue, 4 May 2010 13:48:00 +0000
(15:48 +0200)
committer
Rudolf Polzer <divverent@alientrap.org>
Tue, 4 May 2010 13:48:00 +0000
(15:48 +0200)
qcsrc/server/t_items.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/t_items.qc
b/qcsrc/server/t_items.qc
index 9d32f3234bf7ae2f429f4c4038f84e1666cc67df..d9c3240603852704483caeea7b341d8195221120 100644
(file)
--- a/
qcsrc/server/t_items.qc
+++ b/
qcsrc/server/t_items.qc
@@
-682,6
+682,9
@@
void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
{
startitem_failed = FALSE;
+ self.items = itemid;
+ self.weapons = weaponid;
+
// is it a dropped weapon?
if (self.classname == "droppedweapon")
{
@@
-702,9
+705,6
@@
void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
}
else
{
- self.items = itemid;
- self.weapons = weaponid;
-
if(MUTATOR_CALLHOOK(FilterItem)) // error means we do not want the item
{
startitem_failed = TRUE;