diff --git a/data/ai/lua/patrol.lua b/data/ai/lua/patrol.lua index 9d6e3471fe0..2883cac4a6f 100644 --- a/data/ai/lua/patrol.lua +++ b/data/ai/lua/patrol.lua @@ -16,7 +16,6 @@ function patrol_gen(n, wp) -- n is the name of the unit, like Kiressh return function() - wesnoth.message("HEREE!!") x, y = unit.x, unit.y if (x == wp[wpn].x and y == wp[wpn].y) then wpn = wpn % wpcount + 1 -- advance by one waypoint(this construct loops in range [1, wpcount]) diff --git a/data/ai/scenarios/scenario-lua-ai.cfg b/data/ai/scenarios/scenario-lua-ai.cfg index 06f5c629abe..e4c2c1a53a9 100644 --- a/data/ai/scenarios/scenario-lua-ai.cfg +++ b/data/ai/scenarios/scenario-lua-ai.cfg @@ -100,7 +100,6 @@ Gs^Fp , Gs^Fp , Wwf , Wwf , Mm , Rd patrol_rark = patrol_gen("Rark", {{x=14, y=7}, {x=15, y=7}, {x=15, y=8}, {x=14, y=8}}) -- need to find a solution for this function patrol_eval_rark() - wesnoth.message("BANG") return 1001 end -- End of patrol function // patrol_gen(ai, "Rark", {{x=14, y=7}, {x=15, y=7}, {x=15, y=8}, {x=14, y=8}})