Changeset 8667 for code/branches/presentation/src/modules/docking
- Timestamp:
- May 29, 2011, 6:44:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/docking/Dock.cc
r8645 r8667 84 84 { 85 85 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); 86 P awn* pawn= NULL;86 PlayerInfo* player = NULL; 87 87 88 88 // Check whether it is a player trigger and extract pawn from it … … 93 93 return false; 94 94 } 95 p awn= pTrigger->getTriggeringPlayer();95 player = pTrigger->getTriggeringPlayer(); 96 96 } 97 97 else … … 100 100 return false; 101 101 } 102 if(pawn == NULL)103 {104 COUT(4) << "Docking::execute Can't retrieve Pawn from Trigger. (" << trigger->getIdentifier()->getName() << ")" << std::endl;105 return false;106 }107 108 // Extract the PlayerInfo from the Pawn.109 PlayerInfo* player = pawn->getPlayer();110 102 if(player == NULL) 111 103 { 112 COUT( 2) << "Docking::execute The PlayerInfo* is NULL." << std::endl;104 COUT(4) << "Docking::execute Can't retrieve PlayerInfo from Trigger. (" << trigger->getIdentifier()->getName() << ")" << std::endl; 113 105 return false; 114 106 }
Note: See TracChangeset
for help on using the changeset viewer.