mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-26 13:51:01 +00:00
SERVER: Fix denybuy.wav spam with perk_pap
This commit is contained in:
parent
763a7d75b5
commit
f416363b21
1 changed files with 2 additions and 1 deletions
|
@ -1879,7 +1879,8 @@ void touch_pap() {
|
||||||
PapUpgrade(self, other);
|
PapUpgrade(self, other);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (other.button7 && other.weapon) {
|
else if (other.button7 && other.weapon && !other.semiuse) {
|
||||||
|
other.semiuse = true;
|
||||||
centerprint (other, STR_NOTENOUGHPOINTS);
|
centerprint (other, STR_NOTENOUGHPOINTS);
|
||||||
sound(other, 0, "sounds/misc/denybuy.wav", 1, 1);
|
sound(other, 0, "sounds/misc/denybuy.wav", 1, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue