X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=data%2Fqcsrc%2Fserver%2Fmiscfunctions.qc;h=93e162b1d5e2bf23361756b2741ae3dc59777d7c;hb=357bc80f55dae24629be97851789c2f26b7e3c4b;hp=766b57c6bc11278f4f137374e1e1b7bfdc608659;hpb=bb34204e896cdfd76749ee4f2f9ec01c7762030f;p=voretournament%2Fvoretournament.git diff --git a/data/qcsrc/server/miscfunctions.qc b/data/qcsrc/server/miscfunctions.qc index 766b57c6..93e162b1 100644 --- a/data/qcsrc/server/miscfunctions.qc +++ b/data/qcsrc/server/miscfunctions.qc @@ -1262,8 +1262,11 @@ void stopsound(entity e, float chan) void play2(entity e, string filename) { //stuffcmd(e, strcat("play2 ", filename, "\n")); - msg_entity = e; - soundtoat(MSG_ONE, world, '0 0 0', CHAN_AUTO, filename, VOL_BASE, ATTN_NONE); + if (clienttype(e) == CLIENTTYPE_REAL) + { + msg_entity = e; + soundtoat(MSG_ONE, world, '0 0 0', CHAN_AUTO, filename, VOL_BASE, ATTN_NONE); + } } // use this one if you might be causing spam (e.g. from touch functions that might get called more than once per frame)