- Timestamp:
- Feb 14, 2011, 8:24:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/ControllableEntity.cc
r7860 r7889 96 96 this->bDestroyWhenPlayerLeft_ = false; 97 97 98 if (this->bHasLocalController_ && this->bHasHumanController_)99 this->stopLocalHumanControl();100 101 98 if (this->getPlayer() && this->getPlayer()->getControllableEntity() == this) 102 99 this->getPlayer()->stopControl(); … … 133 130 { 134 131 SetConfigValue(mouseLookSpeed_, 3.0f); 132 } 133 134 void ControllableEntity::preDestroy() 135 { 136 // HACK - solve this clean and without preDestroy hook for multiplayer where removePlayer() isn't called 137 if (this->bHasLocalController_ && this->bHasHumanController_) 138 this->stopLocalHumanControl(); 135 139 } 136 140
Note: See TracChangeset
for help on using the changeset viewer.