mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
setaicontroller: use Ids
get rid of duplicated mMoveDestination
This commit is contained in:
parent
201b7bf695
commit
2fe36a571b
5 changed files with 13 additions and 13 deletions
|
|
@ -2259,7 +2259,7 @@ void Player::advanceTime(F32 dt)
|
|||
}
|
||||
}
|
||||
|
||||
bool Player::setAIController(const char* controller)
|
||||
bool Player::setAIController(S32 controller)
|
||||
{
|
||||
if (Sim::findObject(controller, mAIController))
|
||||
{
|
||||
|
|
@ -2271,7 +2271,7 @@ bool Player::setAIController(const char* controller)
|
|||
return false;
|
||||
}
|
||||
|
||||
DefineEngineMethod(Player, setAIController, bool, (const char* controller), , "")
|
||||
DefineEngineMethod(Player, setAIController, bool, (S32 controller), , "")
|
||||
{
|
||||
return object->setAIController(controller);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue