Skip to content

Commit

Permalink
2D fow display fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrdacor committed Feb 10, 2025
1 parent cf03abe commit f657356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ambermoon.Core/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12206,7 +12206,7 @@ void ChangeLightRadius()
int change = mapChange || playerSwitched ? diff : Math.Sign(diff) * Math.Min(Math.Abs(diff), 8);
lastRadius += change;
fow2D.Radius = (byte)lastRadius;
fow2D.Visible = lastRadius < 112;
fow2D.Visible = !is3D && lastRadius < 112;

if (newRadius - lastRadius != 0)
AddTimedEvent(timeSpan, ChangeLightRadius);
Expand Down

0 comments on commit f657356

Please sign in to comment.