mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #242 from Azaezel/alpha40_stuckSpots
from practicing: aiplayer onstuck correction
This commit is contained in:
commit
ef6137ac6f
1 changed files with 1 additions and 2 deletions
|
|
@ -716,12 +716,11 @@ void AIPlayer::onReachDestination()
|
||||||
*/
|
*/
|
||||||
void AIPlayer::onStuck()
|
void AIPlayer::onStuck()
|
||||||
{
|
{
|
||||||
|
throwCallback("onMoveStuck");
|
||||||
#ifdef TORQUE_NAVIGATION_ENABLED
|
#ifdef TORQUE_NAVIGATION_ENABLED
|
||||||
if(!mPathData.path.isNull())
|
if(!mPathData.path.isNull())
|
||||||
repath();
|
repath();
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
throwCallback("onMoveStuck");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TORQUE_NAVIGATION_ENABLED
|
#ifdef TORQUE_NAVIGATION_ENABLED
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue