Entities background color

This commit is contained in:
def 2013-08-29 17:14:03 +02:00
parent 1cc6977611
commit 48870102e0
2 changed files with 8 additions and 3 deletions

View file

@ -771,8 +771,12 @@ const char *CClient::ErrorString()
void CClient::Render()
{
if(g_Config.m_ClShowEntities && g_Config.m_ClDDRaceCheats)
Graphics()->Clear(0.3f,0.3f,0.6f);
else if(g_Config.m_GfxClear) {
{
vec3 bg = GetColorV3(g_Config.m_ClBackgroundEntities);
Graphics()->Clear(bg.r, bg.g, bg.b);
}
else if(g_Config.m_GfxClear)
{
vec3 bg = GetColorV3(g_Config.m_ClBackground);
Graphics()->Clear(bg.r, bg.g, bg.b);
}

View file

@ -196,7 +196,8 @@ MACRO_CONFIG_INT(SvResetPickus, sv_reset_pickups, 0, 0, 1, CFGFLAG_SERVER, "Whet
MACRO_CONFIG_INT(ClShowOthers, cl_show_others, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show players in other teams")
MACRO_CONFIG_INT(ClShowEntities, cl_show_entities, 0, 0, 1, CFGFLAG_CLIENT, "Cheat to show game tiles")
MACRO_CONFIG_INT(ClShowQuads, cl_show_quads, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show quads")
MACRO_CONFIG_INT(ClBackground, cl_background, 0, 0, 0xFFFFFF, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show background")
MACRO_CONFIG_INT(ClBackground, cl_background, 0, 0, 0xFFFFFF, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Background color")
MACRO_CONFIG_INT(ClBackgroundEntities, cl_background_entities, 0x905473, 0, 0xFFFFFF, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Background color for entities")
MACRO_CONFIG_INT(SvShowOthers, sv_show_others, 1, 0, 1, CFGFLAG_SERVER, "Whether players can user the command showothers or not")
MACRO_CONFIG_INT(SvMaxAfkTime, sv_max_afk_time, 0, 0, 9999, CFGFLAG_SERVER, "The time in seconds a player is allowed to be afk (0 = disabled)")
MACRO_CONFIG_INT(SvMaxAfkVoteTime, sv_max_afk_vote_time, 300, 0, 9999, CFGFLAG_SERVER, "The time in seconds a player can be afk and his votes still count (0 = disabled)")