{
if (autocvar_con_chatrect)
cvar_set("con_chatrect", "0");
- if (autocvar_con_chat)
+ if (autocvar_con_chat != -1)
cvar_set("con_chat", "-1");
return;
}
if(autocvar__hud_configure)
{
vector chatsize = '1 1 0' * autocvar_con_chatsize;
- cvar_set("con_chatrect_x", "9001"); // over 9000, we'll fake it instead for more control over alpha and such
+ if (cvar_string("con_chatrect_x") != "9001")
+ cvar_set("con_chatrect_x", "9001"); // over 9000, we'll fake it instead for more control over alpha and such
string str = textShortenToWidth(_("^3Player^7: This is the chat area."), mySize.x, chatsize, stringwidth_colors);
for(int i = 0; i < autocvar_con_chat; ++i)
{