Merge pull request #206 from Hedgefog/fix/deadly-move-check

Fixed isDeadlyMove method
This commit is contained in:
jeefo 2020-12-05 16:58:23 +03:00 committed by GitHub
commit 0a8d88a577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2662,7 +2662,7 @@ bool Bot::isDeadlyMove (const Vector &to) {
}
while (distance > 30.0f) {
check = check + direction * 30.0f; // move 10 units closer to the goal...
check = check - direction * 30.0f; // move 10 units closer to the goal...
down = check;
down.z -= 1000.0f; // straight down 1000 units