From: Michael Meyer Date: Fri, 26 Aug 2022 17:15:00 +0000 (-0400) Subject: Fix: overwriting stairs in movement tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93842fbb1bc63300d73ec5102b48e5035aaf8fe1;p=nethack 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. --- diff --git a/test/testmove.lua b/test/testmove.lua index 39aa5b7b2..da1e0ab83 100644 --- a/test/testmove.lua +++ b/test/testmove.lua @@ -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