X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qc;h=a5311d54fe8040858e2d862ecfe642e1537e1c31;hp=1dd98c3846f85ba2a04737977cc62b861ab30d26;hb=31bf64ba7821ebb5c0aba8a154472810074ed11e;hpb=a8e2728c110f6150cf51135722d57340d3be4c00;ds=sidebyside diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 1dd98c384..a5311d54f 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -930,6 +930,7 @@ void readlevelcvars(void) CHECK_MUTATOR_ADD("g_nades", mutator_nades, 1); CHECK_MUTATOR_ADD("g_sandbox", sandbox, 1); CHECK_MUTATOR_ADD("g_campcheck", mutator_campcheck, 1); + CHECK_MUTATOR_ADD("g_buffs", mutator_buffs, 1); #undef CHECK_MUTATOR_ADD @@ -1080,15 +1081,6 @@ float sound_allowed(float dest, entity e) return TRUE; } -#ifdef COMPAT_XON010_CHANNELS -void(entity e, float chan, string samp, float vol, float atten) builtin_sound = #8; -void sound(entity e, float chan, string samp, float vol, float atten) -{ - if (!sound_allowed(MSG_BROADCAST, e)) - return; - builtin_sound(e, chan, samp, vol, atten); -} -#else #undef sound void sound(entity e, float chan, string samp, float vol, float atten) { @@ -1096,7 +1088,6 @@ void sound(entity e, float chan, string samp, float vol, float atten) return; sound7(e, chan, samp, vol, atten, 0, 0); } -#endif void soundtoat(float dest, entity e, vector o, float chan, string samp, float vol, float atten) {