Changeset 8898 for code/branches/spaceraceTwo/src/orxonox
- Timestamp:
- Oct 19, 2011, 4:21:48 PM (13 years ago)
- Location:
- code/branches/spaceraceTwo/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceraceTwo/src/orxonox/gametypes/Gametype.cc
r8858 r8898 123 123 if (this->gtinfo_->isStartCountdownRunning() && !this->gtinfo_->hasStarted()) 124 124 this->gtinfo_->countdownStartCountdown(dt); 125 125 126 126 if (!this->gtinfo_->hasStarted()) 127 127 { … … 129 129 { 130 130 // Inform the GametypeInfo that the player is ready to spawn. 131 if(it->first->isHumanPlayer() && it->first->isReadyToSpawn()) 131 if(it->first->isHumanPlayer() && it->first->isReadyToSpawn()){ 132 132 this->gtinfo_->playerReadyToSpawn(it->first); 133 } 134 135 this->checkStart(); 133 134 } 135 } 136 137 this->checkStart(); 136 138 } 137 139 else if (!this->gtinfo_->hasEnded()) 138 this->spawnDeadPlayersIfRequested();139 140 this->assignDefaultPawnsIfNeeded(); 140 { this->spawnDeadPlayersIfRequested(); 141 142 this->assignDefaultPawnsIfNeeded();} 141 143 } 142 144 -
code/branches/spaceraceTwo/src/orxonox/gametypes/Gametype.h
r8706 r8898 156 156 virtual void resetTimer(float t); 157 157 158 159 158 160 protected: 159 161 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; -
code/branches/spaceraceTwo/src/orxonox/infos/GametypeInfo.cc
r8858 r8898 71 71 this->bStarted_ = false; 72 72 this->bEnded_ = false; 73 this->startCountdown_ = 0.0f;73 this->startCountdown_ = 10.0f; 74 74 this->bStartCountdownRunning_ = false; 75 this->counter_ = 0;75 this->counter_ = 10; 76 76 this->spawned_ = false; 77 77 this->readyToSpawn_ = false;
Note: See TracChangeset
for help on using the changeset viewer.