Changeset 5929 for code/trunk/src/orxonox/infos
- Timestamp:
- Oct 12, 2009, 8:20:07 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core5 (added) merged: 5768-5769,5772,5775-5780,5783-5785,5791-5792,5795-5807,5809-5814,5816-5832,5836-5839,5842-5853,5855-5899,5904-5922,5924-5928
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/infos/HumanPlayer.cc
r5781 r5929 64 64 { 65 65 if (this->humanHud_) 66 delete this->humanHud_;66 this->humanHud_->destroy(); 67 67 68 68 if (this->gametypeHud_) 69 delete this->gametypeHud_;69 this->gametypeHud_->destroy(); 70 70 } 71 71 } … … 116 116 117 117 if (!GameMode::isMaster()) 118 this->set ObjectMode(ObjectDirection::Bidirectional);118 this->setSyncMode(ObjectDirection::Bidirectional); 119 119 else 120 120 this->setName(this->nick_); … … 162 162 163 163 if (this->isInitialized() && this->isLocalPlayer()) 164 if (this->getGametype()->getHUDTemplate() != "") 164 { 165 if (this->getGametype() && this->getGametype()->getHUDTemplate() != "") 165 166 this->setGametypeHUDTemplate(this->getGametype()->getHUDTemplate()); 167 else 168 this->setGametypeHUDTemplate(""); 169 } 166 170 } 167 171 … … 170 174 if (this->humanHud_) 171 175 { 172 delete this->humanHud_;176 this->humanHud_->destroy(); 173 177 this->humanHud_ = 0; 174 178 } 175 179 176 if (this->isLocalPlayer() && this->humanHudTemplate_ != "" )180 if (this->isLocalPlayer() && this->humanHudTemplate_ != "" && GameMode::showsGraphics()) 177 181 { 178 182 this->humanHud_ = new OverlayGroup(this); … … 186 190 if (this->gametypeHud_) 187 191 { 188 delete this->gametypeHud_;192 this->gametypeHud_->destroy(); 189 193 this->gametypeHud_ = 0; 190 194 } -
code/trunk/src/orxonox/infos/PlayerInfo.cc
r5781 r5929 35 35 #include "gametypes/Gametype.h" 36 36 #include "worldentities/ControllableEntity.h" 37 #include "controllers/Controller.h" 37 38 38 39 namespace orxonox … … 66 67 if (this->controller_) 67 68 { 68 delete this->controller_;69 this->controller_->destroy(); 69 70 this->controller_ = 0; 70 71 } … … 131 132 if (this->controller_) 132 133 { 133 delete this->controller_;134 this->controller_->destroy(); 134 135 this->controller_ = 0; 135 136 } -
code/trunk/src/orxonox/infos/PlayerInfo.h
r5781 r5929 33 33 34 34 #include "Info.h" 35 #include "core/Identifier.h" 36 #include "controllers/Controller.h" 35 #include "core/SubclassIdentifier.h" 37 36 38 37 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.