Change con_scale behavior for value 0

- Do not use uiscale for con_scale default. A 40 column console when
  everything is defaults is maddening. The default is now CleanXfac minus 1.
This commit is contained in:
Marisa Heit 2016-11-11 22:43:42 -06:00
parent 3926ca13b0
commit 4dce07762b

View file

@ -154,12 +154,12 @@ CUSTOM_CVAR(Int, con_scale, 0, CVAR_ARCHIVE)
int active_con_scale()
{
int scale = con_scale;
if (scale == 0)
if (scale <= 0)
{
scale = uiscale;
if (scale == 0)
scale = CleanXfac - 1;
if (scale <= 0)
{
scale = CleanXfac;
scale = 1;
}
}
return scale;