X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.qc;h=9096dddfa8c0e6a31dd1dc2d3f5f8ba069df4b56;hb=b9671f63469586007314131f3f53728795c035cd;hp=c5685df3a43e0adfdeb35ef4cd92c7187af72240;hpb=9415698cb6eb43d8beb667ecbf8c756b00626dfd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.qc b/qcsrc/common/sounds/all.qc index c5685df3a..9096dddfa 100644 --- a/qcsrc/common/sounds/all.qc +++ b/qcsrc/common/sounds/all.qc @@ -108,7 +108,7 @@ void stopsound(entity e, int chan) void play2(entity e, string filename) { msg_entity = e; - soundtoat(MSG_ONE, world, '0 0 0', CH_INFO, filename, VOL_BASE, ATTEN_NONE); + soundtoat(MSG_ONE, NULL, '0 0 0', CH_INFO, filename, VOL_BASE, ATTEN_NONE); } .float spamtime; @@ -128,13 +128,13 @@ float spamsound(entity e, int chan, string samp, float vol, float _atten) void play2team(float t, string filename) { if (autocvar_bot_sound_monopoly) return; - FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && it.team == t, LAMBDA(play2(it, filename))); + FOREACH_CLIENT(IS_PLAYER(it) && IS_REAL_CLIENT(it) && it.team == t, play2(it, filename)); } void play2all(string samp) { if (autocvar_bot_sound_monopoly) return; - _sound(world, CH_INFO, samp, VOL_BASE, ATTEN_NONE); + _sound(NULL, CH_INFO, samp, VOL_BASE, ATTEN_NONE); } #endif