Mapster32: save r_usenewshading in configuration file.

git-svn-id: https://svn.eduke32.com/eduke32@3313 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-12-23 14:00:03 +00:00
parent d975a6a24f
commit 6f1259b131

View file

@ -196,6 +196,8 @@ int32_t loadsetup(const char *fn)
glusetexcompr = !!atoi_safe(val);
if (readconfig(fp, "r_shadescale", val, VL) > 0)
shadescale = clampd(Bstrtod(val, NULL), 0.0, 10.0);
if (readconfig(fp, "r_usenewshading", val, VL) > 0)
r_usenewshading = clamp(atoi_safe(val), 0, 2);
#endif
if (readconfig(fp, "r_usenewaspect", val, VL) > 0)
r_usenewaspect = !!atoi_safe(val);
@ -394,6 +396,7 @@ int32_t writesetup(const char *fn)
"r_downsize = %d\n"
"r_texcompr = %d\n"
"r_shadescale = %g\n"
"r_usenewshading = %d\n"
"\n"
#endif
"; Use new aspect determination code? (classic/Polymost)\n"
@ -577,7 +580,7 @@ int32_t writesetup(const char *fn)
#ifdef USE_OPENGL
usemodels, usehightile, g_lazy_tileselector,
glusetexcache, glusememcache, gltexfiltermode, glanisotropy,r_downsize,glusetexcompr,
shadescale,
shadescale, r_usenewshading,
#endif
r_usenewaspect,
#ifndef RENDERTYPEWIN