From: terencehill Date: Sat, 29 Aug 2015 21:51:27 +0000 (+0200) Subject: Remove an useless check: comments are already filtered out by tokenize_console X-Git-Tag: xonotic-v0.8.2~1987^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4613b4fac75285973cad44435b8f47317ce28b8c;p=xonotic%2Fxonotic-data.pk3dir.git Remove an useless check: comments are already filtered out by tokenize_console --- diff --git a/qcsrc/client/quickmenu.qc b/qcsrc/client/quickmenu.qc index 0f00fdc5b..00fbe0ab2 100644 --- a/qcsrc/client/quickmenu.qc +++ b/qcsrc/client/quickmenu.qc @@ -99,7 +99,7 @@ bool QuickMenu_Open(string mode, string submenu) // first skip invalid entries, so we don't check them anymore float argc; argc = tokenize_console(s); - if(argc == 0 || argv(0) == "" || substring(argv(0), 0, 2) == "////") + if(argc == 0 || argv(0) == "") continue; if(argc == 1) bufstr_set(QuickMenu_Buffer, QuickMenu_Buffer_Size, strcat("S", argv(0))); // Submenu