Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 7:43:10 PM (18 years ago)
Author:
snellen
Message:

added some debug output, script gets called

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/story_entities/game_world.cc

    r8271 r8289  
    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");
     
    189193  Account *b = new Account(30);
    190194  b->setName("b");
    191  
     195  printf("ScriptManager created by game world\n");
    192196  LoadParamXML(root, "ScriptManager", &this->scriptManager, ScriptManager, loadParams);
    193197
     
    229233  this->bRunning = true;
    230234
    231   State::setScripManager(&this->scriptManager);
    232 
    233235  this->run();
    234236}
     
    241243{
    242244  PRINTF(3)("GameWorld::stop() - got stop signal\n");
    243   State::setScripManager(NULL);
     245  State::setScriptManager(NULL);
    244246  this->bRunning = false;
    245247}
Note: See TracChangeset for help on using the changeset viewer.