From 90f250dfee46bf57e5727d4cd86519d62a6d0450 Mon Sep 17 00:00:00 2001 From: qndel Date: Sun, 30 May 2021 15:38:53 +0200 Subject: [PATCH] fix line clear after refactor (#2086) --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 78fbd4baf..969fcf7f3 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4783,7 +4783,7 @@ bool LineClear(bool (*Clear)(int, Point), int entity, Point startPoint, Point en dincH = 2 * (dx + dy); yincD = -1; } - while (position != endPoint) { + while (!done && position != endPoint) { if ((d <= 0) ^ (yincD < 0)) { d += dincD; } else {