- Timestamp:
- Apr 24, 2018, 1:36:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18/src/orxonox/infos/GametypeInfo.cc
r11855 r11901 299 299 this->setReadyToSpawnHelper(player, false); 300 300 this->setSpawnedHelper(player, false); 301 301 302 } 302 303 } … … 317 318 318 319 // TODO We might want to handle the subsequent spawns as well somehow 319 if(player->isHumanPlayer() && player->isLocalPlayer() 320 if(player->isHumanPlayer() && player->isLocalPlayer()) //&& this->isFirstSpawn_) 320 321 { 321 322 this->isFirstSpawn_ = false; … … 360 361 { 361 362 // Display "Press [Fire] to start the match" if the game has not yet ended. 362 if(!this->hasEnded()) 363 if(!this->hasEnded()){ 363 364 NotificationListener::sendNotification("Press [Fire] to start the match", GametypeInfo::NOTIFICATION_SENDER, NotificationMessageType::info, NotificationSendMode::network, player->getClientID()); 365 366 //this->getLevel()->getScriptableController()->setPlayer(player); 367 368 // This handles paths relative to the 'level' directory 369 //std::string script = this->getLevel()->getScript(); 370 //if(script.at(0) != '/') 371 //script = "../levels/" + script; // Not very dynamic 372 //this->getLevel()->getScriptableController()->runScript(script); 373 } 364 374 // Else display "Game has ended". 365 375 else
Note: See TracChangeset
for help on using the changeset viewer.