Ignore cache size setting in .cfg if the value is less than the hard-coded default

git-svn-id: https://svn.eduke32.com/eduke32@6878 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-05-04 22:42:42 +00:00
parent bbae62868a
commit dcdf3b79b2

View file

@ -615,7 +615,10 @@ int32_t CONFIG_ReadSetup(void)
SCRIPT_GetNumber(ud.config.scripthandle, "Setup", "ConfigVersion", &ud.configversion);
SCRIPT_GetNumber(ud.config.scripthandle, "Setup", "ForceSetup", &ud.config.ForceSetup);
SCRIPT_GetNumber(ud.config.scripthandle, "Setup", "NoAutoLoad", &ud.config.NoAutoLoad);
SCRIPT_GetNumber(ud.config.scripthandle, "Setup", "CacheSize", &MAXCACHE1DSIZE);
SCRIPT_GetNumber(ud.config.scripthandle, "Setup", "CacheSize", &dummy);
if (dummy > MAXCACHE1DSIZE)
MAXCACHE1DSIZE = dummy;
if (g_noSetup == 0 && g_modDir[0] == '/')
{