Merge remote-tracking branch 'remotes/ZDoom/gzdoom/staging' into gzd_staging

This commit is contained in:
nashmuhandes 2023-08-22 09:09:51 +08:00
commit 9e0bf90be6
177 changed files with 4290 additions and 12626 deletions

View file

@ -598,6 +598,15 @@ void FGameConfigFile::DoGlobalSetup ()
var->SetGenericRep(v, CVAR_Float);
}
}
if (last < 225)
{
if (const auto var = FindCVar("gl_lightmode", NULL))
{
UCVarValue v = var->GetGenericRep(CVAR_Int);
v.Int /= 8; // all legacy modes map to 0, ZDoom software to 1 and Vanilla software to 2.
var->SetGenericRep(v, CVAR_Int);
}
}
}
}
}