Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7106


Ignore:
Timestamp:
Jun 3, 2010, 2:29:41 AM (14 years ago)
Author:
landauf
Message:

fixed a crash: if the player dies, the AI shouldn't follow him anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/controllers/ArtificialController.cc

    r7097 r7106  
    683683    void ArtificialController::follow()
    684684    {
    685         this->moveToPosition(this->target_->getPosition());
     685        if (this->target_)
     686            this->moveToPosition(this->target_->getPosition());
     687        else
     688            this->specificMasterActionHoldCount_ = 0;
    686689/*
    687690        if (!this->getControllableEntity())
Note: See TracChangeset for help on using the changeset viewer.