- Timestamp:
- Sep 15, 2010, 7:29:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/effects/AddQuestHint.cc
r7401 r7456 28 28 29 29 /** 30 @file 30 @file AddQuestHint.cc 31 31 @brief Implementation of the AddQuestHint class. 32 32 */ … … 34 34 #include "AddQuestHint.h" 35 35 36 #include "util/Exception.h"37 36 #include "core/CoreIncludes.h" 38 37 #include "core/XMLPort.h" 38 #include "util/Exception.h" 39 40 #include "questsystem/QuestHint.h" 39 41 #include "questsystem/QuestManager.h" 40 42 #include "questsystem/QuestItem.h" 41 #include "questsystem/QuestHint.h"42 43 43 44 namespace orxonox … … 105 106 bool AddQuestHint::invoke(PlayerInfo* player) 106 107 { 107 if(player == NULL) //!< NULL-pointers are evil! 108 //TODO: Replace with assert? 109 if(player == NULL) // NULL-pointers are evil! 108 110 { 109 111 COUT(2) << "The input player is NULL." << std::endl; … … 117 119 QuestHint* hint = QuestManager::getInstance().findHint(this->hintId_); 118 120 if(hint == NULL || !hint->setActive(player)) 119 {120 121 return false; 121 }122 122 } 123 123 catch(const Exception& e)
Note: See TracChangeset
for help on using the changeset viewer.