Skip to content

Commit

Permalink
Fix: show monument level again
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Nov 1, 2023
1 parent bd4ece9 commit 024b034
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@ private void clear() {
}

private void tryBuild(final Cursor target, final boolean effects, int budget) {
int lastLayer = cursor.layer;
while (cursor.compareTo(target) < 0) {
place(cursor, effects);
if (cursor.layer != lastLayer) {
announceLayer(lastLayer);
lastLayer = cursor.layer;
}

cursor = step(cursor);
final Cursor newCursor = step(cursor);
if (newCursor.layer != cursor.layer) {
announceLayer(cursor.layer);
}
cursor = newCursor;

if (--budget == 0) {
break;
Expand Down

0 comments on commit 024b034

Please sign in to comment.