From: terencehill Date: Fri, 6 Apr 2018 11:34:18 +0000 (+0200) Subject: Small cleanups X-Git-Tag: xonotic-v0.8.5~2201 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=65e35355faa02ca0b0681b351ed0f4ce9e26dcaf;p=xonotic%2Fxonotic-data.pk3dir.git Small cleanups --- diff --git a/qcsrc/menu/xonotic/weaponarenacheckbox.qc b/qcsrc/menu/xonotic/weaponarenacheckbox.qc index fd4f51385..695b2d787 100644 --- a/qcsrc/menu/xonotic/weaponarenacheckbox.qc +++ b/qcsrc/menu/xonotic/weaponarenacheckbox.qc @@ -21,9 +21,8 @@ void XonoticWeaponarenaCheckBox_setChecked(entity me, float foo) } void XonoticWeaponarenaCheckBox_loadCvars(entity me) { - float n = tokenize_console(cvar_string("menu_weaponarena")); - float i; - for(i=0; i= 3) VoiceMessage(caller, e, substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2))); - else VoiceMessage(caller, e, ""); + string msg = ""; + if (argc >= 3) + msg = substring(command, argv_start_index(2), argv_end_index(-1) - argv_start_index(2)); + VoiceMessage(caller, e, msg); return; }