ai_helper.movefull_stopunit: return action result to calling function
This commit is contained in:
parent
13d2cdfc29
commit
74792845d7
1 changed files with 2 additions and 2 deletions
|
@ -1486,9 +1486,9 @@ function ai_helper.movefull_stopunit(ai, unit, x, y)
|
|||
|
||||
local next_hop = ai_helper.next_hop(unit, x, y)
|
||||
if next_hop and ((next_hop[1] ~= unit.x) or (next_hop[2] ~= unit.y)) then
|
||||
ai_helper.checked_move_full(ai, unit, next_hop[1], next_hop[2])
|
||||
return ai_helper.checked_move_full(ai, unit, next_hop[1], next_hop[2])
|
||||
else
|
||||
ai_helper.checked_stopunit_moves(ai, unit)
|
||||
return ai_helper.checked_stopunit_moves(ai, unit)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue