X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.qc;h=328486d35470cfc3594e437742d6428d2426a14c;hb=bc3f297ed082b23fb33dd0d8f5dcd33bb0198507;hp=b3bdf99e9177e765d1280e880fa6b5ecdef1fbed;hpb=d492869ab1f18e05121529b7bcffcb637d13994c;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.qc b/qcsrc/common/sounds/all.qc index b3bdf99e9..328486d35 100644 --- a/qcsrc/common/sounds/all.qc +++ b/qcsrc/common/sounds/all.qc @@ -1,6 +1,8 @@ #include "all.qh" #ifdef SVQC +#include + bool autocvar_bot_sound_monopoly; .entity realowner; @@ -114,13 +116,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;