Changeset 9945 for code/trunk/src/orxonox
- Timestamp:
- Jan 3, 2014, 1:50:22 PM (11 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r9667 r9945 276 276 else if (friendlyfire && (source == target)) 277 277 { 278 278 this->playerScored(originator->getPlayer(), -1); 279 279 } 280 280 } … … 292 292 if (playerParty_[originator->getPlayer()] == killer) //reward the killer 293 293 { 294 294 this->playerScored(originator->getPlayer(), 25); 295 295 } 296 296 return true; … … 412 412 if (it->second==piggy)//Spieler mit der Pig-party frags++ 413 413 { 414 414 this->playerScored(it->first); 415 415 } 416 416 } -
code/trunk/src/orxonox/infos/PlayerInfo.cc
r9939 r9945 232 232 if (tmp == NULL) 233 233 { 234 235 234 orxout(verbose) << "PlayerInfo: pauseControl, Controller is NULL " << endl; 235 return; 236 236 } 237 237 tmp->setActive(false); -
code/trunk/src/orxonox/sound/WorldAmbientSound.cc
r9939 r9945 39 39 namespace orxonox 40 40 { 41 41 SetConsoleCommand("WorldAmbientSound", "nextsong", &WorldAmbientSound::nextSong); 42 42 43 43 RegisterClass(WorldAmbientSound); … … 113 113 { 114 114 115 116 117 118 119 120 121 122 123 115 //HACK: Assuption - there is only one WorldAmbientSound in a level and only one level is used. 116 for (ObjectList<WorldAmbientSound>::iterator it = ObjectList<WorldAmbientSound>::begin(); 117 it != ObjectList<WorldAmbientSound>::end(); ++it) 118 { 119 while(it->ambientSound_->setAmbientSource(WorldAmbientSound::soundList_[WorldAmbientSound::soundNumber_]) == false){ 120 WorldAmbientSound::soundNumber_ = (WorldAmbientSound::soundNumber_ + 1) % WorldAmbientSound::soundList_.size(); 121 } 122 WorldAmbientSound::soundNumber_ = (WorldAmbientSound::soundNumber_ + 1) % WorldAmbientSound::soundList_.size(); 123 } 124 124 } 125 125 } -
code/trunk/src/orxonox/worldentities/pawns/Pawn.cc
r9939 r9945 305 305 void Pawn::kill() 306 306 { 307 307 this->damage(this->health_); 308 308 this->death(); 309 309 } … … 330 330 { 331 331 explosionSound_->play(); 332 332 // Set bAlive_ to false and wait for PawnManager to do the destruction 333 333 this->bAlive_ = false; 334 334
Note: See TracChangeset
for help on using the changeset viewer.