Fix: overwriting stairs in movement tests

Like some of the other coordinates in testmove.lua (addressed in
70008fc), the attempt to overwrite the stairs was targeting a spot
one space to the left of the actual position of the stairs, causing it
to have no effect (discussion suggested this may have been a result of
99715e0).  Update it so the stairs are properly erased and won't
interfere with movement tests by stopping a running/rushing hero early.
This commit is contained in:
Michael Meyer
2022-08-26 13:15:00 -04:00
committed by Pasi Kallinen
parent d4f0450afe
commit 93842fbb1b

View File

@@ -15,7 +15,7 @@ function initlev()
des.teleport_region({ region = {POS.x,POS.y,POS.x,POS.y}, region_islev = true, dir="both" });
des.finalize_level();
for k, v in pairs(nh.stairways()) do
des.terrain(v.x - 1, v.y, ".");
des.terrain(v.x, v.y, ".");
end
end