Changeset 5757 for code/trunk
- Timestamp:
- Sep 20, 2009, 9:58:59 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/overlays/hudtemplates3.oxo
r5695 r5757 96 96 /> 97 97 98 <GUIOverlay 99 name = "QuestGUI" 100 guiname = "QuestGUI" 101 /> 102 98 103 </OverlayGroup> 99 104 </Template> -
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.