Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8408 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Jun 14, 2006, 5:50:18 PM (19 years ago)
Author:
bensch
Message:

trunk: merged the script_engine branche back here
merged with command
svn merge https://svn.orxonox.net/orxonox/branches/script_engine . -r8284:HEAD
no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r8312 r8408  
    137137  PhysicsEngine::getInstance();
    138138  CREngine::getInstance();
     139
     140  State::setScriptManager(&this->scriptManager);
     141
    139142}
    140143
     
    146149ErrorMessage GameWorld::loadData()
    147150{
    148   this->displayLoadScreen();
     151  this->displayLoadScreen();  State::setScriptManager(&this->scriptManager);
     152
    149153
    150154  PRINTF(0)("Loading the GameWorld\n");
     
    182186  this->dataXML = (TiXmlElement*)root->Clone();
    183187
    184 
     188  //remove this after finished testing !!!!
    185189  Object* obj= new Object();
    186190  obj->setName("Obj");
     
    190194  b->setName("b");
    191195 
     196 
    192197  LoadParamXML(root, "ScriptManager", &this->scriptManager, ScriptManager, loadParams);
    193198
     
    228233  this->bPaused = false;
    229234  this->bRunning = true;
    230 
    231   State::setScripManager(&this->scriptManager);
    232 
     235  State::setScriptManager(&this->scriptManager); //make sure we have the right script manager
    233236  this->run();
    234237}
     
    241244{
    242245  PRINTF(3)("GameWorld::stop() - got stop signal\n");
    243   State::setScripManager(NULL);
     246  State::setScriptManager(NULL);
    244247  this->bRunning = false;
    245248}
     
    603606
    604607  AtmosphericEngine::getInstance()->draw();
    605  
     608
    606609  if( unlikely( this->showBV))
    607610  {
Note: See TracChangeset for help on using the changeset viewer.