diff --git a/cl_dll/rainbow.cpp b/cl_dll/rainbow.cpp index 4a04bf0a..5e26a70e 100644 --- a/cl_dll/rainbow.cpp +++ b/cl_dll/rainbow.cpp @@ -96,7 +96,15 @@ void CRainbow::SPR_DrawAdditiveRainbow(int frame, int x, int y, const rect_s *pr int CRainbow::DrawString(int x, int y, const char *str, int r, int g, int b) { - return DrawRainbowString(x, y, str, gHUD.m_Rainbow.m_pfnDrawString); + if (r == 0 && g == 0 && b == 0) + { + // Draw invisible text without rainbow color + return gHUD.m_Rainbow.m_pfnDrawString(x, y, str, r, g, b); + } + else + { + return DrawRainbowString(x, y, str, gHUD.m_Rainbow.m_pfnDrawString); + } } int CRainbow::DrawStringReverse(int x, int y, const char *str, int r, int g, int b)