Draw modifier volumes only if enabled in settings (defaults to true)

This commit is contained in:
Flyinghead 2018-06-09 17:22:01 +02:00
parent c427997269
commit 7640a35720
3 changed files with 4 additions and 1 deletions

View File

@ -243,6 +243,7 @@ void LoadSettings()
settings.aica.NoSound = cfgLoadInt("config","aica.NoSound",0);
settings.rend.UseMipmaps = cfgLoadInt("config","rend.UseMipmaps",1);
settings.rend.WideScreen = cfgLoadInt("config","rend.WideScreen",0);
settings.rend.ModifierVolumes = cfgLoadInt("config","rend.ModifierVolumes",1);
settings.pvr.subdivide_transp = cfgLoadInt("config","pvr.Subdivide",0);

View File

@ -1109,7 +1109,8 @@ void DrawStrips()
/*if (!GetAsyncKeyState(VK_F1))*/
DrawList<ListType_Opaque,false>(pvrrc.global_param_op);
DrawModVols();
if (settings.rend.ModifierVolumes)
DrawModVols();
//Alpha tested
//setup alpha test state

View File

@ -615,6 +615,7 @@ struct settings_t
{
bool UseMipmaps;
bool WideScreen;
bool ModifierVolumes;
} rend;
struct