]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove an useless check: comments are already filtered out by tokenize_console
authorterencehill <piuntn@gmail.com>
Sat, 29 Aug 2015 21:51:27 +0000 (23:51 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 29 Aug 2015 21:52:50 +0000 (23:52 +0200)
qcsrc/client/quickmenu.qc

index 0f00fdc5b0367d0014e093bcf6a288fbfec475fd..00fbe0ab2a8cc5a298669cf1f6d2e69800d34af7 100644 (file)
@@ -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