X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.qc;h=203b643854c5d5cf6b7cf0aaba762390ec6fa7e4;hb=85a690d8a1e3eddfee959cea3dd42517484b07f4;hp=9096dddfa8c0e6a31dd1dc2d3f5f8ba069df4b56;hpb=8e0690ba978a6a0c7287bc3cfa2873a05b15fc5f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.qc b/qcsrc/common/sounds/all.qc index 9096dddfa..203b64385 100644 --- a/qcsrc/common/sounds/all.qc +++ b/qcsrc/common/sounds/all.qc @@ -1,3 +1,4 @@ +#include "all.qh" #ifdef SVQC bool autocvar_bot_sound_monopoly; @@ -113,13 +114,13 @@ void play2(entity e, string filename) .float spamtime; /** use this one if you might be causing spam (e.g. from touch functions that might get called more than once per frame) */ -float spamsound(entity e, int chan, string samp, float vol, float _atten) +float spamsound(entity e, int chan, Sound samp, float vol, float _atten) { if (!sound_allowed(MSG_BROADCAST, e)) return false; if (time > e.spamtime) { e.spamtime = time; - _sound(e, chan, samp, vol, _atten); + sound(e, chan, samp, vol, _atten); return true; } return false;