Compare commits

...

2 commits

Author SHA1 Message Date
melon 8d73b7738a
Merge 9cc8cd89e0 into 9f278979e5 2024-09-10 18:01:20 -05:00
BlaiZephyr 9cc8cd89e0 fix_colored_zero_value 2024-09-07 12:35:18 +02:00

View file

@ -1369,7 +1369,8 @@ void CHud::RenderMovementInformation(const int ClientId)
const char aaCoordinates[][4] = {"X:", "Y:"};
for(int i = 0; i < 2; i++)
{
TextRender()->TextColor(ColorRGBA(1, 1, 1, 1));
if(m_aPlayerSpeed[0] == 0 || m_aPlayerSpeed[1] == 0)
TextRender()->TextColor(ColorRGBA(1, 1, 1, 1));
if(m_aLastPlayerSpeedChange[i] == ESpeedChange::INCREASE)
TextRender()->TextColor(ColorRGBA(0, 1, 0, 1));
if(m_aLastPlayerSpeedChange[i] == ESpeedChange::DECREASE)