Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3215 in orxonox.OLD for orxonox/trunk/src/world.cc


Ignore:
Timestamp:
Dec 18, 2004, 4:10:05 AM (19 years ago)
Author:
patrick
Message:

/orxonox/trunk: discovered a minor bug and fixed some code style issues…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world.cc

    r3213 r3215  
    7575{
    7676  this->bQuitCurrentGame = true;
    77   this->localCamera->setWorld(NULL);
     77  //this->localCamera->setWorld(NULL);
     78  this->localPlayer->destroy();
    7879  this->localCamera->destroy();
    7980
     
    569570  this->bQuitCurrentGame = false;
    570571  printf("World|Entering main loop\n");
    571   while(!this->bQuitOrxonox && !this->bQuitCurrentGame) /* pause pause pause ?!?!?*/
     572  while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */
    572573    {
    573574      //debug routine
     
    577578      // Process input
    578579      handle_input();
     580      if( this->bQuitCurrentGame || this->bQuitOrxonox)
     581        {
     582          printf("World::mainLoop() - leaving loop earlier...\n");
     583          break;
     584        }
    579585      // Process time
    580586      time_slice();
     
    586592      for(int i = 0; i < 10000000; i++) {}
    587593    }
    588   printf("World|Exiting the main loop\n");
     594  printf("World::mainLoop() - Exiting the main loop\n");
    589595}
    590596
     
    655661    {
    656662      if( !cmd->bUp) this->bQuitOrxonox = true;
    657       return true;
     663      {
     664        printf("World::system_command() - rescv quit command\n");
     665        return true;
     666      }
    658667    }
    659668  return false;
Note: See TracChangeset for help on using the changeset viewer.