Weapons: Make sure dropped items get purged between rounds.
This commit is contained in:
parent
0c0b9938b7
commit
3b0d7b7fdc
2 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,7 @@ void item_pickup::touch(void)
|
|||
|
||||
CBaseTrigger::UseTargets();
|
||||
|
||||
if (cvar("sv_playerslots") == 1) {
|
||||
if (m_iWasDropped == 1 || cvar("sv_playerslots") == 1) {
|
||||
remove(self);
|
||||
} else {
|
||||
Hide();
|
||||
|
|
|
@ -414,6 +414,7 @@ void CSEv_DropWeapon(void)
|
|||
drop.think = DropWeapon_Enable;
|
||||
drop.nextthink = time + 1.5f;
|
||||
drop.movetype = MOVETYPE_TOSS;
|
||||
drop.classname = "remove_me";
|
||||
|
||||
makevectors(pl.v_angle);
|
||||
drop.velocity = v_forward * 256;
|
||||
|
|
Loading…
Reference in a new issue