don't allow mySize to get < 0 by too big padding numbers
authorFruitieX <rasse@rasse-lappy.localdomain>
Fri, 11 Jun 2010 21:37:53 +0000 (00:37 +0300)
committerFruitieX <rasse@rasse-lappy.localdomain>
Fri, 11 Jun 2010 21:37:53 +0000 (00:37 +0300)
qcsrc/client/hud.qc

index 6fbe46b..5dab7f7 100644 (file)
@@ -824,7 +824,7 @@ float HUD_Panel_GetPadding(float id)
        mySize = HUD_Panel_GetSize(id);
        float smallestsize;
        smallestsize = min(mySize_x, mySize_y);
-       return min(smallestsize/2, stof(padding));
+       return min(smallestsize/2 - 5, stof(padding));
 }
 
 // draw the background/borders