another change for lightgamma 1 being allowed

This commit is contained in:
pierow 2018-08-13 02:04:22 -04:00
parent dca187fa4c
commit eae207d51c

View file

@ -4847,8 +4847,8 @@ void AvHHud::UpdateExploitPrevention()
ForceCvar("r_detailtextures", r_detailtextures, 0.0f);
ForceCvar("gl_max_size", gl_max_size, 256.0f);
if(lightgamma && lightgamma->value < 2.0) {
ForceCvar("lightgamma", lightgamma, 2.0f);
if(lightgamma && lightgamma->value < 1.0) {
ForceCvar("lightgamma", lightgamma, 1.0f);
}
if(lightgamma && lightgamma->value > 5.0) {
ForceCvar("lightgamma", lightgamma, 5.0f);