Browse Source

fix line clear after refactor (#2086)

pull/2084/head
qndel 5 years ago committed by GitHub
parent
commit
90f250dfee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/monster.cpp

2
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 {

Loading…
Cancel
Save