Skip to content

Commit

Permalink
don't render highlight on other z-levels
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Apr 22, 2024
1 parent 311e1fb commit 28e8739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/quantum.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28e8739

Please sign in to comment.