Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2009, 5:17:05 PM (15 years ago)
Author:
wirthmi
Message:

Made NewHumanController an InputHandler so we can control the crosshair.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/infos/PlayerInfo.cc

    r5929 r5981  
    158158        this->bReadyToSpawn_ &= (!this->bSetUnreadyAfterSpawn_);
    159159
    160         if (this->controller_)
     160        if (this->controller_) {
    161161            this->controller_->setControllableEntity(entity);
     162            this->controller_->startControl();
     163        }
    162164
    163165        this->changedControllableEntity();
     
    174176        this->controllableEntityID_ = OBJECTID_UNKNOWN;
    175177
    176         if (this->controller_)
     178        if (this->controller_) {
    177179            this->controller_->setControllableEntity(0);
     180            this->controller_->stopControl();
     181        }
    178182
    179183        entity->removePlayer();
Note: See TracChangeset for help on using the changeset viewer.