Changeset 3033 for code/trunk/src/orxonox/objects/quest
- Timestamp:
- May 23, 2009, 9:57:52 PM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/gametypes (added) merged: 2827,2903,2905-2906,2933-2936,2952,2954,2961,2970-2971,2978,2985-2986,3019-3020
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2911 r3033 41 41 42 42 #include "orxonox/objects/infos/PlayerInfo.h" 43 #include "orxonox/objects/worldentities/ ControllableEntity.h"43 #include "orxonox/objects/worldentities/pawns/Pawn.h" 44 44 #include "orxonox/objects/worldentities/triggers/PlayerTrigger.h" 45 45 #include "QuestEffect.h" … … 120 120 121 121 //! Extracting the ControllableEntity form the PlayerTrigger. 122 ControllableEntity* entity= trigger->getTriggeringPlayer();123 124 if( entity== NULL)125 { 126 COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a ControllableEntity." << std::endl;122 Pawn* pawn = trigger->getTriggeringPlayer(); 123 124 if(pawn == NULL) 125 { 126 COUT(2) << "The QuestEffectBeacon was triggered by an entity other than a Pawn." << std::endl; 127 127 return false; 128 128 } 129 129 130 130 //! Extract the PlayerInfo from the ControllableEntity. 131 PlayerInfo* player = entity->getPlayer();131 PlayerInfo* player = pawn->getPlayer(); 132 132 133 133 if(player == NULL)
Note: See TracChangeset
for help on using the changeset viewer.