engine: color Host_Error red to make it more visible in the console

This commit is contained in:
Alibek Omarov
2026-02-28 20:39:13 +05:00
parent 99d7c52b4e
commit 711d15958c

View File

@@ -837,7 +837,7 @@ void GAME_EXPORT Host_Error( const char *error, ... )
}
else
{
Con_Printf( "%s: %s", __func__, hosterror1 );
Con_Printf( S_RED "%s" S_DEFAULT ": %s", __func__, hosterror1 );
if( host.allow_console )
{
UI_SetActiveMenu( false );
@@ -851,7 +851,7 @@ void GAME_EXPORT Host_Error( const char *error, ... )
if( recursive )
{
Con_Printf( "%sRecursive: %s", __func__, hosterror2 );
Con_Printf( S_RED "%sRecursive" S_DEFAULT ": %s", __func__, hosterror2 );
Sys_Error( "%s", hosterror1 );
}