mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
more safeties. simplified reverse steering calc
This commit is contained in:
parent
712404c9b4
commit
d36cf31707
4 changed files with 14 additions and 20 deletions
|
|
@ -1744,7 +1744,6 @@ bool Player::onAdd()
|
|||
world );
|
||||
mPhysicsRep->setTransform( getTransform() );
|
||||
}
|
||||
mAIController = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -2287,6 +2286,7 @@ DefineEngineMethod(Player, getAIController, AIController*, (), , "")
|
|||
|
||||
bool Player::getAIMove(Move* move)
|
||||
{
|
||||
if (!isServerObject()) return false;
|
||||
if (mAIController)
|
||||
{
|
||||
mAIController->getAIMove(move); //actual result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue