provide cx,cz and direction to VP_printstack
This commit is contained in:
11
src/main.lua
11
src/main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user