provide cx,cz and direction to VP_printstack

This commit is contained in:
justuswolff
2026-02-18 20:09:20 +01:00
parent 5417ff638f
commit 29e23e9f40

View File

@@ -585,15 +585,15 @@ local function VP_moveto(x,z, cx,cz,direction)
move("back", true)
end
end
while y ~= cz do
if y > cz then -- z
while z ~= cz do
if z > cz then -- z
if center(direction, 1) then move("right") end
y = VP_movetoy(y, 3)
cz = cz + 1
move("forward", true)
direction = 1
end
if y < cz then
if z < cz then
if center(direction, -1) then move("left") end
y = VP_movetoy(y, 4)
cz = cz - 1
@@ -790,8 +790,9 @@ while true do
else
local buf,dimensions = load(name)
local stacks = VP_createstack(buf, dimensions)
VP_printstack(stacks, dimensions)
local cx,cz,direction = 1,1,0
VP_printstack(stacks, dimensions, cx,cz,direction)
end
end
end