- Timestamp:
- May 18, 2009, 6:00:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gametypes/src/orxonox/objects/gametypes/Asteroids.cc
r2978 r2986 44 44 RegisterObject(Asteroids); 45 45 this->firstCheckpointReached_ = false; 46 this->firstTimeSpawned_ = false; 46 47 } 47 48 … … 59 60 this->end(); 60 61 } 61 62 62 } 63 63 64 void Asteroids::spawnPlayer(PlayerInfo* player) 65 { 66 if (this->timerIsActive_ && this->firstTimeSpawned_) 67 { 68 this->end(); 69 return; 70 } 71 72 this->firstTimeSpawned_ = true; 73 Gametype::spawnPlayer(player); 74 } 64 75 65 76 void Asteroids::start()
Note: See TracChangeset
for help on using the changeset viewer.