Added comments

This commit is contained in:
Diavolo 2021-08-01 14:31:32 +02:00
parent 1bd4bcba05
commit 320412551b
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -230,6 +230,7 @@ namespace Components
const auto str = std::string(name);
if (str == "g_TeamColor_EnemyTeam")
{
// Dvar_GetUnpackedColor
auto* colorblindEnemy = Colors::ColorEnemyColorBlind->current.color;
expandedColor[0] = static_cast<float>(colorblindEnemy[0]) / 255.0f;
expandedColor[1] = static_cast<float>(colorblindEnemy[1]) / 255.0f;
@ -239,6 +240,7 @@ namespace Components
}
else if (str == "g_TeamColor_MyTeam")
{
// Dvar_GetUnpackedColor
auto* colorblindAlly = Colors::ColorAllyColorBlind->current.color;
expandedColor[0] = static_cast<float>(colorblindAlly[0]) / 255.0f;
expandedColor[1] = static_cast<float>(colorblindAlly[1]) / 255.0f;