SERVER: Fix denybuy.wav spam with perk_pap

This commit is contained in:
cypress 2023-08-26 15:01:12 -04:00
parent 763a7d75b5
commit f416363b21

View file

@ -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);
} }