update minimum size on the chat panel so the simulated text never overlaps the panel...
authorFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:55:08 +0000 (13:55 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Sun, 13 Jun 2010 10:55:08 +0000 (13:55 +0300)
qcsrc/client/hud.qc

index 27f802b..3cfa912 100644 (file)
@@ -1124,7 +1124,7 @@ void HUD_Panel_SetPosSize(float id, vector resizeorigin)
 
        if(id == 12) // some panels have their own restrictions, like the chat panel (which actually only moves the engine chat print around). Looks bad if it's too small.
        {
-               mySize_x = max(15 * cvar("con_chatsize"), mySize_x);
+               mySize_x = max(17 * cvar("con_chatsize"), mySize_x);
                mySize_y = max(2 * cvar("con_chatsize") + 2 * HUD_Panel_GetPadding(id), mySize_y);
        }