Skip to content

Commit

Permalink
Fixed minor render issue with focus floor not updating on region map
Browse files Browse the repository at this point in the history
  • Loading branch information
ben_singer committed Nov 16, 2024
1 parent da359c3 commit ccc59d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,12 @@ public void BuildRegionMap(Region region, Point2D startPosition, Point3D focusPo
if (!region.IsVisibleWithoutDiscovery && !Array.Exists(roomsOnThisFloor, r => r.HasBeenVisited))
continue;

var isFocusFloor = floor == focusFloor;

if (floor == playerFloor)
gridStringBuilder.DrawWrapped($"{CurrentFloorIndicator} L{floor}", x, ++y, maxAvailableWidth, VisitedBoundaryColor, out _, out _);
gridStringBuilder.DrawWrapped($"{CurrentFloorIndicator} L{floor}", x, ++y, maxAvailableWidth, isFocusFloor ? FocusedBoundaryColor : VisitedBoundaryColor, out _, out _);
else
gridStringBuilder.DrawWrapped($"L{floor}", x + 2, ++y, maxAvailableWidth, LowerLevelColor, out _, out _);
gridStringBuilder.DrawWrapped($"L{floor}", x + 2, ++y, maxAvailableWidth, isFocusFloor ? FocusedBoundaryColor : LowerLevelColor, out _, out _);
}

x += indicatorLength;
Expand Down

0 comments on commit ccc59d0

Please sign in to comment.