From c1a088c339f8aea9beafc80135d6327558b1e11b Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:09:36 -0400 Subject: [PATCH] Tweak fire effect pointlight Raise it above the input position (i.e. above ground) and increase the range so it better casts light. --- src/effects.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/effects.cpp b/src/effects.cpp index 29c4bbe5482..d055cd94282 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -1303,8 +1303,11 @@ static bool updateFire(EFFECT *psEffect, LightingData& lightData) percent = 100; } + constexpr int fireLightHeightAboveGround = 28; + light.position = psEffect->position; - light.range = (percent * psEffect->radius * 3) / 100; + light.position.y += fireLightHeightAboveGround; + light.range = (percent * psEffect->radius * 6) / 100; light.colour = pal_Colour(255, 0, 0); lightData.lights.push_back(light);