- Timestamp:
- Dec 14, 2017, 4:04:14 PM (7 years ago)
- Location:
- code/branches/ScriptableController_HS17/src/orxonox/infos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/infos/GametypeInfo.cc
r11662 r11673 78 78 this->spawned_ = false; 79 79 this->readyToSpawn_ = false; 80 this->isFirstSpawn_ = true; 80 81 81 82 this->registerVariables(); … … 315 316 } 316 317 317 if(player->isHumanPlayer() && player->isLocalPlayer()) 318 { 318 // TODO We might want to handle the subsequent spawns as well somehow 319 if(player->isHumanPlayer() && player->isLocalPlayer() && this->isFirstSpawn_) 320 { 321 this->isFirstSpawn_ = false; 319 322 this->getLevel()->getScriptableController()->setPlayer(player); 320 323 324 // This handles paths relative to the 'level' directory 321 325 std::string script = this->getLevel()->getScript(); 322 326 if(script.at(0) != '/') -
code/branches/ScriptableController_HS17/src/orxonox/infos/GametypeInfo.h
r11358 r11673 83 83 inline bool isStartCountdownRunning() const 84 84 { return this->bStartCountdownRunning_; } 85 85 86 86 void changedStartCountdownRunning(void); // Is called when the start countdown has been either started or stopped. 87 87 … … 168 168 bool spawned_; //!< Whether the local Player is currently spawned. 169 169 bool readyToSpawn_; //!< Whether the local Player is ready to spawn. 170 bool isFirstSpawn_; 170 171 }; 171 172 }
Note: See TracChangeset
for help on using the changeset viewer.