From 28e87399b7bfa3d6f39cc7cc5b612a05c913129e Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Mon, 22 Apr 2024 03:20:46 -0700 Subject: [PATCH] don't render highlight on other z-levels --- gui/quantum.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/quantum.lua b/gui/quantum.lua index 0985bd8dd9..17cb9913b4 100644 --- a/gui/quantum.lua +++ b/gui/quantum.lua @@ -169,7 +169,7 @@ local HOVERED_SP_PEN = to_pen{ch='=', fg=COLOR_GREEN, tile=dfhack.screen.findGraphicsTile('ACTIVITY_ZONES', 2, 15)} function Quantum:render_sp_overlay(sp, pen) - if not sp then return end + if not sp or sp.z ~= df.global.window_z then return end local function get_overlay_char(pos) if dfhack.buildings.containsTile(sp, pos.x, pos.y) then return pen end