From 815d02a685bc662aac1bf2bbe99740fb6ce5ebaa Mon Sep 17 00:00:00 2001 From: Fazana <52551480+FazanaJ@users.noreply.github.com> Date: Sun, 12 Sep 2021 13:02:45 +0100 Subject: [PATCH] Strength. --- src/game/puppylights.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/puppylights.c b/src/game/puppylights.c index 552e41f0..16c189cc 100644 --- a/src/game/puppylights.c +++ b/src/game/puppylights.c @@ -200,7 +200,7 @@ void puppylights_iterate(struct PuppyLight *light, Lights1 *src, struct Object * //A slightly hacky way to offset the ambient lighting in order to prevent directional lighting from having a noticeable change in ambient brightness. if (flags & LIGHTFLAG_DIRECTIONAL_OFFSET) { - ambient = approach_f32_asymptotic(tempLight->a.l.col[i] * 1.5f, tempLight->a.l.col[i], scale2*((f32)light->rgba[3]/255.0f)); + ambient = approach_f32_asymptotic(MIN(tempLight->a.l.col[i] * 2, 0xFF), tempLight->a.l.col[i], scale2*((f32)light->rgba[3]/255.0f)); tempLight->a.l.col[i] = ambient; tempLight->a.l.colc[i] = ambient; }