]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qc
IS_DIGIT
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qc
index 4afc151f32b8bc29c53a0dff1d764fa837e7ee47..87636d24e8446fddd1566e1b6c2e5edf9601e428 100644 (file)
@@ -798,7 +798,7 @@ string find_last_color_code(string s)
                if (carets & 1)
                {
                        if(i+1 <= len)
-                       if(strstrofs("0123456789", substring(s, i+1, 1), 0) >= 0)
+                       if(IS_DIGIT(substring(s, i+1, 1)))
                                return substring(s, i, 2);
 
                        if(i+4 <= len)