if(cvar("hud_healtharmor") == 2)
mySize_y = 0.23; // 0.23 * width, trial and error...
break;
+ case 4:
+ mySize_x = 0.8; // 8/10 * height, as panel cant support more than 10 entries...
+ mySize_y = 1/8; // 1/8 * width
+ break;
case 5:
mySize_y = 1/4.1; // 1/4.1 * width, trial and error...
break;
}
float entries, height;
- entries = 8 * mySize_y/mySize_x;
+ entries = bound(1, floor(8 * mySize_y/mySize_x), 10);
height = mySize_y/entries;
vector fontsize;
string s;
float i;
- for(i = 0; i <= entries; ++i)
+ for(i = 0; i < entries; ++i)
{
a = bound(0, when + (fadetime - (time - killnotify_times[i]))/fadetime, 1);