screen: simplify SCR_GetHUDScale.

This commit is contained in:
svdijk 2014-05-08 04:12:39 +02:00
parent 9ae8192f04
commit 013ad4aa45

View file

@ -1586,10 +1586,11 @@ SCR_GetHUDScale(void)
if (gl_hudscale->value < 0)
{
int i = viddef.width / 640;
int j = viddef.height / 240;
while (i > viddef.height / 240)
if (i > j)
{
i--;
i = j;
}
if (i < 1)
{