Fix container highlight condition

This commit is contained in:
phobos2077
2023-06-24 07:59:16 +08:00
committed by NovaRain
parent 50b51fc1a3
commit 3f8d322697
+1 -1
View File
@@ -69,7 +69,7 @@ procedure GetOutlineColor(variable obj, variable isCritter) begin
end
procedure ToggleHighlightObject(variable obj, variable enable, variable isCritter) begin
if (not alsoContainer and obj_item_subtype(obj) != item_type_container) or NO_HIGHLIGHT(obj) then return;
if (not alsoContainer or obj_item_subtype(obj) != item_type_container) and NO_HIGHLIGHT(obj) then return;
set_outline(obj, GetOutlineColor(obj, isCritter) if enable else 0);
end