From: copperwater Date: Thu, 2 Sep 2021 13:36:45 +0000 (-0400) Subject: Fix: replace_terrain used wrong y2 coordinate X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bb686f744bef949e75e7413d3bcbfa3107cfdf6;p=nethack Fix: replace_terrain used wrong y2 coordinate --- diff --git a/src/sp_lev.c b/src/sp_lev.c index a73ed4f30..d02e74a1f 100755 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -5122,7 +5122,7 @@ lspo_replace_terrain(lua_State *L) (void) selection_not(sel); } else { xchar rx1, ry1, rx2, ry2; - rx1 = x1, ry1 = y1, rx2 = x2, ry2 = x2; + rx1 = x1, ry1 = y1, rx2 = x2, ry2 = y2; get_location(&rx1, &ry1, ANY_LOC, g.coder->croom); get_location(&rx2, &ry2, ANY_LOC, g.coder->croom); for (x = max(rx1, 0); x <= min(rx2, COLNO - 1); x++)