From 5c600aafca7fd0df4c1a6f35e5eaaf3b67639ab1 Mon Sep 17 00:00:00 2001 From: XProger Date: Fri, 15 Feb 2019 22:13:36 +0300 Subject: [PATCH] ignore overbright lights --- src/format.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/format.h b/src/format.h index 2e6d6fc..8e7e812 100644 --- a/src/format.h +++ b/src/format.h @@ -1423,6 +1423,8 @@ namespace TR { for (int i = 0; i < lightsCount; i++) { Light &light = lights[i]; + if (light.intensity > 8192) + continue; int dx = x - light.x; int dy = y - light.y;