From 3c8c4817138168cd54085eb5c1047ccb5c6ffd8c Mon Sep 17 00:00:00 2001 From: Daanish Date: Sun, 29 Mar 2026 13:51:40 +0000 Subject: [PATCH] Adjust torch light calculation to expand the area of effect for nearby torches as it was too small before --- window.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.rb b/window.rb index 6dbb870..1d68238 100644 --- a/window.rb +++ b/window.rb @@ -70,7 +70,7 @@ class Window < Gosu::Window # Only calculate torch lights if the setting is enabled, to save performance if $bus.get(:settings, :torches_lightup) torches = $bus.get(:nearby_torches, - [cam_x - SCREEN_SIZE[0] / 2, cam_y - SCREEN_SIZE[1] / 2, SCREEN_SIZE[0] * 2, SCREEN_SIZE[1] * 2] + [cam_x - SCREEN_SIZE[0], cam_y - SCREEN_SIZE[1], SCREEN_SIZE[0] * 4, SCREEN_SIZE[1] * 4] ) || [] torch_lights = torches.map { |t| [t[0] - cam_x, SCREEN_SIZE[1] - (t[1] - cam_y)] }.flatten end