Merge pull request #19 from diamante0018/colordblind_team_colors
Added comments
This commit is contained in:
commit
b689c0579c
@ -230,6 +230,7 @@ namespace Components
|
|||||||
const auto str = std::string(name);
|
const auto str = std::string(name);
|
||||||
if (str == "g_TeamColor_EnemyTeam")
|
if (str == "g_TeamColor_EnemyTeam")
|
||||||
{
|
{
|
||||||
|
// Dvar_GetUnpackedColor
|
||||||
auto* colorblindEnemy = Colors::ColorEnemyColorBlind->current.color;
|
auto* colorblindEnemy = Colors::ColorEnemyColorBlind->current.color;
|
||||||
expandedColor[0] = static_cast<float>(colorblindEnemy[0]) / 255.0f;
|
expandedColor[0] = static_cast<float>(colorblindEnemy[0]) / 255.0f;
|
||||||
expandedColor[1] = static_cast<float>(colorblindEnemy[1]) / 255.0f;
|
expandedColor[1] = static_cast<float>(colorblindEnemy[1]) / 255.0f;
|
||||||
@ -239,6 +240,7 @@ namespace Components
|
|||||||
}
|
}
|
||||||
else if (str == "g_TeamColor_MyTeam")
|
else if (str == "g_TeamColor_MyTeam")
|
||||||
{
|
{
|
||||||
|
// Dvar_GetUnpackedColor
|
||||||
auto* colorblindAlly = Colors::ColorAllyColorBlind->current.color;
|
auto* colorblindAlly = Colors::ColorAllyColorBlind->current.color;
|
||||||
expandedColor[0] = static_cast<float>(colorblindAlly[0]) / 255.0f;
|
expandedColor[0] = static_cast<float>(colorblindAlly[0]) / 255.0f;
|
||||||
expandedColor[1] = static_cast<float>(colorblindAlly[1]) / 255.0f;
|
expandedColor[1] = static_cast<float>(colorblindAlly[1]) / 255.0f;
|
||||||
|
Loading…
Reference in New Issue
Block a user