Skip to content

Commit

Permalink
Fix glow light level calc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemon-King committed Aug 23, 2024
1 parent a01cd73 commit 2e663f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/assets/zscript/lib/lemonactor.zs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class LemonActor {
static int HX2RenderPickupGlow(Actor source) {
double quakeOverbright = 2.0;
int curLightLevel = source.cursector.GetLightLevel();
int ambLightLevel = clamp(5, 60 + 34 + sin((source.pos.x + source.pos.y + (level.MapTime * 3.8)) * 34) * quakeOverbright, 255);
int ambLightLevel = clamp(5, (60.0 + 34.0 + sin((source.pos.x + source.pos.y + (level.MapTime * 3.8))) * 34.0), 255);
return curLightLevel + ambLightLevel;
}
}

0 comments on commit 2e663f5

Please sign in to comment.