projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf83d44
)
fix weapon duping (thanks, Mario)
author
Rudolf Polzer <divverent@xonotic.org>
Sat, 11 May 2013 11:44:47 +0000
(13:44 +0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Sat, 11 May 2013 11:44:47 +0000
(13:44 +0200)
qcsrc/server/cl_player.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/cl_player.qc
b/qcsrc/server/cl_player.qc
index 95aeced31b308b5db10fa4ab9da332baab5151aa..23e0c5fcc493e75e635c6ab101db5322d46f65bd 100644
(file)
--- a/
qcsrc/server/cl_player.qc
+++ b/
qcsrc/server/cl_player.qc
@@
-278,8
+278,9
@@
void SpawnThrownWeapon (vector org, float w)
}
else
{
- if(W_IsWeaponThrowable(self.weapon))
- W_ThrowNewWeapon(self, self.weapon, FALSE, org, randomvec() * 125 + '0 0 200');
+ if(WEPSET_CONTAINS_EW(self, self.weapon))
+ if(W_IsWeaponThrowable(self.weapon))
+ W_ThrowNewWeapon(self, self.weapon, FALSE, org, randomvec() * 125 + '0 0 200');
}
}