Changeset 5757 for code/trunk/src/modules
- Timestamp:
- Sep 20, 2009, 9:58:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/overlays/GUIOverlay.cc
r5738 r5757 37 37 #include "core/XMLPort.h" 38 38 #include "infos/PlayerInfo.h" 39 #include "worldentities/ControllableEntity.h" 39 40 40 41 namespace orxonox … … 62 63 SUPER(GUIOverlay, changedVisibility); 63 64 65 //Setting player now. 66 GUIManager::getInstance().setPlayer(this->guiName_, (orxonox_cast<ControllableEntity*>(this->getOwner()))->getPlayer()); 67 64 68 if (this->isVisible()) 65 69 { … … 83 87 { 84 88 this->guiName_ = name; 85 GUIManager::getInstance().setPlayer(name, orxonox_cast<PlayerInfo*>(this->getOwner())); 89 GUIManager::getInstance().setPlayer(name, orxonox_cast<PlayerInfo*>(this->getOwner())); //Set Player is going to be NULL, so it needs to be set in changedVisibility() as well. 86 90 } 87 91 }
Note: See TracChangeset
for help on using the changeset viewer.