fix offset with setting/removing under newdesign when moving camera

This commit is contained in:
justuswolff
2026-02-17 00:49:21 +01:00
parent 6f27041ead
commit 28d2d47ff4

View File

@@ -134,8 +134,8 @@ local function newdesign()
-- user input
local event = table.pack(os.pullEvent())
if event[1] == "mouse_click" or event[1] == "mouse_drag" then
event[3] = event[3]+camx
event[4] = event[4]+camy
--event[3] = event[3]+camx
--event[4] = event[4]+camy
if event[3] <= dimensions["x"] and event[4] <= dimensions["z"] then
if event[2] == 1 then -- left button, set
buf[posasstring(event[3], currentfloor, event[4])] = 1