- Timestamp:
- May 29, 2011, 6:44:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/modules/notifications/NotificationDispatcher.cc
r8666 r8667 140 140 141 141 PlayerTrigger* pTrigger = orxonox_cast<PlayerTrigger*>(trigger); 142 P awn* pawn= NULL;142 PlayerInfo* player = NULL; 143 143 144 144 // If the trigger is a PlayerTrigger. … … 148 148 return false; 149 149 else 150 p awn= pTrigger->getTriggeringPlayer();150 player = pTrigger->getTriggeringPlayer(); 151 151 } 152 152 else 153 153 return false; 154 154 155 if(p awn== NULL)155 if(player == NULL) 156 156 { 157 157 COUT(4) << "The NotificationDispatcher was triggered by an entity other than a Pawn. (" << trigger->getIdentifier()->getName() << ")" << std::endl; … … 159 159 } 160 160 161 // Extract the PlayerInfo from the Pawn. 162 PlayerInfo* player = pawn->getPlayer(); 163 164 if(player == NULL) 165 { 166 CCOUT(3) << "The PlayerInfo* is NULL." << std::endl; 167 return false; 168 } 169 170 // HACK fix. Resolve this issue another way... 171 if(GameMode::isStandalone()) 172 this->dispatch(0); 173 else 174 this->dispatch(player->getClientID()); 161 this->dispatch(player->getClientID()); 175 162 176 163 return true;
Note: See TracChangeset
for help on using the changeset viewer.