From 3f8d322697070b6ed786ce6ad5171e9d259542a9 Mon Sep 17 00:00:00 2001 From: phobos2077 Date: Sat, 24 Jun 2023 00:02:59 +0200 Subject: [PATCH] Fix container highlight condition --- artifacts/mods/gl_highlighting.ssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/mods/gl_highlighting.ssl b/artifacts/mods/gl_highlighting.ssl index 24bb5ff5..7f12d8d2 100644 --- a/artifacts/mods/gl_highlighting.ssl +++ b/artifacts/mods/gl_highlighting.ssl @@ -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