Changeset 3056 for code/trunk/src/orxonox/objects/gametypes/Asteroids.cc
- Timestamp:
- May 25, 2009, 1:56:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/Asteroids.cc
r3033 r3056 44 44 RegisterObject(Asteroids); 45 45 this->firstCheckpointReached_ = false; 46 this->firstTimeSpawned_ = false;47 46 } 48 47 … … 62 61 } 63 62 64 void Asteroids:: spawnPlayer(PlayerInfo* player)63 void Asteroids::pawnKilled(Pawn* victim, Pawn* killer) 65 64 { 66 if ( this->timerIsActive_ && this->firstTimeSpawned_)65 if (victim && victim->getPlayer()) 67 66 { 68 67 this->end(); 69 return;70 68 } 71 72 this->firstTimeSpawned_ = true;73 Gametype::spawnPlayer(player);74 69 } 75 70
Note: See TracChangeset
for help on using the changeset viewer.