54037: fix to highlight layers where special is assigned a low layer

This commit is contained in:
Oliver Kiddle
2025-11-12 07:48:24 +01:00
committed by Oliver Kiddle
parent 0d8b69b9a0
commit 4c32677ea8
2 changed files with 5 additions and 1 deletions

View File

@@ -1223,7 +1223,8 @@ zrefresh(void)
if (layer > special_layer)
all_attr = mixattrs(rhp->atr, all_attr);
}
} else if (rhp->layer > layer && rhp->layer < nextlayer) {
} else if (rhp->layer > layer &&
(rhp->layer < nextlayer || nextlayer <= layer)) {
nextlayer = rhp->layer;
}
}