Changeset 11690 for code/branches/Presentation_HS17/src/orxonox/infos
- Timestamp:
- Dec 18, 2017, 12:40:00 PM (7 years ago)
- Location:
- code/branches/Presentation_HS17
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17
- Property svn:mergeinfo changed
/code/branches/Waypoints_HS17 reverse-merged: 11496,11523,11539,11559,11582,11603,11633,11655,11657,11659,11661,11687 /code/branches/ScriptableController_HS17 removed
- Property svn:mergeinfo changed
-
code/branches/Presentation_HS17/src/orxonox/infos/GametypeInfo.cc
r11686 r11690 43 43 #include "interfaces/GametypeMessageListener.h" 44 44 #include "interfaces/NotificationListener.h" 45 #include "scriptablecontroller/scriptable_controller.h"46 #include "Level.h"47 45 48 46 #include "PlayerInfo.h" … … 78 76 this->spawned_ = false; 79 77 this->readyToSpawn_ = false; 80 this->isFirstSpawn_ = true;81 78 82 79 this->registerVariables(); … … 313 310 { 314 311 if(this->hasStarted() && !this->hasEnded()) 312 315 313 this->setSpawnedHelper(player, true); 316 }317 318 // TODO We might want to handle the subsequent spawns as well somehow319 if(player->isHumanPlayer() && player->isLocalPlayer() && this->isFirstSpawn_)320 {321 this->isFirstSpawn_ = false;322 this->getLevel()->getScriptableController()->setPlayer(player);323 324 // This handles paths relative to the 'level' directory325 std::string script = this->getLevel()->getScript();326 if(script.at(0) != '/')327 script = "../levels/" + script; // Not very dynamic328 this->getLevel()->getScriptableController()->runScript(script);329 314 } 330 315 } -
code/branches/Presentation_HS17/src/orxonox/infos/GametypeInfo.h
r11686 r11690 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_;171 170 }; 172 171 } -
code/branches/Presentation_HS17/src/orxonox/infos/HumanPlayer.cc
r11686 r11690 38 38 #include "gametypes/Gametype.h" 39 39 #include "overlays/OverlayGroup.h" 40 #include "Level.h"41 #include "scriptablecontroller/scriptable_controller.h"42 40 43 41 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.