fix pens reference

develop
Myk Taylor 2023-03-10 00:12:56 -08:00
parent d48dad052e
commit a3f8be3c01
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -614,10 +614,10 @@ function PlannerOverlay:onRenderFrame(dc, rect)
} }
local hollow = self.subviews.hollow:getOptionValue() local hollow = self.subviews.hollow:getOptionValue()
local default_pen = (self.saved_selection_pos or #uibs.errors == 0) and GOOD_PEN or BAD_PEN local default_pen = (self.saved_selection_pos or #uibs.errors == 0) and pens.GOOD_TILE_PEN or pens.BAD_TILE_PEN
local get_pen_fn = is_construction() and function(pos) local get_pen_fn = is_construction() and function(pos)
return dfhack.buildings.checkFreeTiles(pos, ONE_BY_ONE) and GOOD_PEN or BAD_PEN return dfhack.buildings.checkFreeTiles(pos, ONE_BY_ONE) and pens.GOOD_TILE_PEN or pens.BAD_TILE_PEN
end or function() end or function()
return default_pen return default_pen
end end