|
@@ -748,16 +748,14 @@ namespace CommonAI.Zone.Helper
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- else if ((result.result & MoveResult.MOVE_RESULT_TOUCH_MAP_ALL) != 0)
|
|
|
+ else if ((result.result & MoveResult.MOVE_RESULT_TOUCH_MAP_ALL) != 0 && (result.result & MoveResult.MOVE_RESULT_MIN_STEP) != 0)
|
|
|
{
|
|
|
- if ((result.result & MoveResult.MOVE_RESULT_MIN_STEP) != 0)
|
|
|
- {
|
|
|
- turnMap.Start(next_path.PosX, next_path.PosY);
|
|
|
- }
|
|
|
+ turnMap.Start(next_path.PosX, next_path.PosY);
|
|
|
}
|
|
|
else if ((result.result & MoveResult.MOVE_RESULT_NO_WAY) != 0)
|
|
|
{
|
|
|
next_path = null;
|
|
|
+ IsNoWay = true;
|
|
|
|
|
|
|
|
|
}
|
|
@@ -765,6 +763,7 @@ namespace CommonAI.Zone.Helper
|
|
|
{
|
|
|
Hold();
|
|
|
next_path = null;
|
|
|
+ IsNoWay = true;
|
|
|
return result;
|
|
|
}
|
|
|
|