From 93cfadb5bca95bfce48882ec4d2c1e2d40d980cf Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Fri, 17 Jun 2011 10:19:03 +0000 Subject: [PATCH] Fast & easy fix of the move problem. Now the unit rests on the waypoint until the next turn --- data/ai/scenarios/scenario-lua-ai.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/ai/scenarios/scenario-lua-ai.cfg b/data/ai/scenarios/scenario-lua-ai.cfg index 8b9935834ff..3874f8617e1 100644 --- a/data/ai/scenarios/scenario-lua-ai.cfg +++ b/data/ai/scenarios/scenario-lua-ai.cfg @@ -343,7 +343,7 @@ function my_ai:patrol_gen(ai, n, w1, w2) -- n is the name of the unit, like Kire if (x == waypoints[wpn].x and y == waypoints[wpn].y) then wpn = 3 - wpn -- hardcoded for two waypoints end - ai.move(unit, waypoints[wpn].x, waypoints[wpn].y) + ai.move_full(unit, waypoints[wpn].x, waypoints[wpn].y) end end