- if (mGame.CurrentFrameNumber % mRetryInterval == 0)\r
- {\r
- // Something is in our way, so let's chart a new course.\r
- ChartPath();\r
-\r
- direction = GetDirectionToNextCell();\r
- /*if (direction == Direction.None)\r
- {\r
- // If we still can't chart a course, just stand there\r
- // and try to chart again later.\r
- mState = AiState.Standing;\r
- }*/\r
-\r
- mMotion.Update(timeSpan, direction);\r
- }\r
- else mMotion.Update(timeSpan);\r