From b3ad2671c03ce970d0ad9ab2cb1e68d7994d305c Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 10 Mar 2014 20:16:14 +0000 Subject: [PATCH] [Fix] Should fix the escort ai from blowing to pieces. --- scripts/ai/tpl/escort.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ai/tpl/escort.lua b/scripts/ai/tpl/escort.lua index 4ac8ab4..64fbd7e 100644 --- a/scripts/ai/tpl/escort.lua +++ b/scripts/ai/tpl/escort.lua @@ -25,7 +25,7 @@ function escort() end dir = ai.face(target) - dist = ai.dist(ai.pos(target)) + dist = ai.dist(target) bdist = ai.minbrakedist() -- Close enough. @@ -62,7 +62,7 @@ function flyback() target = mem.escort dir = ai.face(target) - dist = ai.dist(ai.pos(target)) + dist = ai.dist(target) bdist = ai.minbrakedist() -- Try to brake.