Fix: overwriting stairs in movement tests
Like some of the other coordinates in testmove.lua (addressed in70008fc), 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 of99715e0). 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:
committed by
Pasi Kallinen
parent
d4f0450afe
commit
93842fbb1b
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user