From 1860e46d4b45932903e59cd5e32a25b7f3d005c8 Mon Sep 17 00:00:00 2001 From: milek7 Date: Thu, 7 Jul 2022 02:44:56 +0200 Subject: [PATCH] allow for 0 dynamic lights --- Globals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Globals.cpp b/Globals.cpp index 4cc8b816..be5e21a8 100644 --- a/Globals.cpp +++ b/Globals.cpp @@ -351,7 +351,7 @@ global_settings::ConfigParse(cParser &Parser) { // clamp the light number // max 8 lights per opengl specs, minus one used for sun. at least one light for // controlled vehicle - DynamicLightCount = clamp(DynamicLightCount, 1, 7); + DynamicLightCount = clamp(DynamicLightCount, 0, 7); } else if (token == "scenario.time.override") {