Skip to content

Commit

Permalink
also don't alter the z coord if x is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Jan 17, 2024
1 parent 93b9631 commit ee66b29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/design.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,9 @@ end
-- don't imply that stockpiles will be 3d
local main_interface = df.global.game.main_interface
local function check_stockpile_dims()
if main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT then
if main_interface.bottom_mode_selected == df.main_bottom_mode_type.STOCKPILE_PAINT and
selection_rect.start_x > 0
then
selection_rect.start_z = df.global.window_z
end
end
Expand Down

0 comments on commit ee66b29

Please sign in to comment.