Changeset 2254 for code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
- Timestamp:
- Nov 24, 2008, 1:50:47 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/pawns/Spectator.cc
r2171 r2254 106 106 this->updateHUD(); 107 107 108 if (this-> isLocallyControlled())108 if (this->hasLocalController()) 109 109 { 110 110 Vector3 velocity = this->getVelocity(); … … 121 121 SUPER(Spectator, tick, dt); 122 122 123 if (this-> isLocallyControlled())123 if (this->hasLocalController()) 124 124 { 125 125 this->setVelocity(Vector3::ZERO); … … 134 134 } 135 135 136 void Spectator::startLocal Control()137 { 138 ControllableEntity::startLocal Control();139 // if (this-> isLocallyControlled())136 void Spectator::startLocalHumanControl() 137 { 138 ControllableEntity::startLocalHumanControl(); 139 // if (this->hasLocalController()) 140 140 // this->testmesh_->setVisible(false); 141 141 }
Note: See TracChangeset
for help on using the changeset viewer.