Тьомчик
-
Автор темы
- #1
C++:
if (g_Options.chams_backtrack && Backtrack::Get().data.count(ent->EntIndex()) > 0) {
auto& data = Backtrack::Get().data.at(ent->EntIndex());
if (data.size() > 0) {
if (g_Options.chams_backtrack == 2) {
for (auto& record : data) {
OverrideMaterial(false, g_Options.chams_type, g_Options.chams_backtrack_rainbow ? clr : Color(g_Options.color_chams_backtrack));
}
}
else if (g_Options.chams_backtrack == 1) {
auto& back = data.back();
OverrideMaterial(false, g_Options.chams_type, g_Options.chams_backtrack_rainbow ? clr : Color(g_Options.color_chams_backtrack));
}
}
}