support headshot icons

This commit is contained in:
FakeShemp
2016-03-09 19:51:57 +01:00
parent ba6d2b758d
commit 2e5dfc609a
+6 -2
View File
@@ -108,8 +108,12 @@ std::string TextPass::parseColors(std::string text, std::map<int, glm::vec4>& co
}
}
if (*(c + 1) >= '1' && *(c + 1) <= '9') { // Icons
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 48));
if ((*(c + 1) >= '1' && *(c + 1) <= '9') || *(c + 1) <= 'B' || *(c + 1) <= 'E' || *(c + 1) <= 'F') { // Icons
if (*(c + 1) >= '1' && *(c + 1) <= '9') {
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 48));
} else {
parsedString.replace(c, (c + 2), 1, (*(c + 1) - 55));
}
}
if (colorChange) {