fix offset with setting/removing under newdesign when moving camera
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user