Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 24, 2008, 11:00:30 PM (16 years ago)
Author:
scheusso
Message:

first success: client clones the servers universe and displays it with quite good performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network3/src/orxonox/Orxonox.cc

    r1174 r1184  
    184184    GraphicsEngine::getSingleton().destroy();
    185185
    186     if (client_g)
    187       delete client_g;
     186    if (network::Client::getSingleton())
     187      network::Client::destroySingleton();
    188188    if (server_g)
    189189      delete server_g;
     
    281281    ogre_->setup();
    282282    if(serverIp_.compare("")==0)
    283       client_g = new network::Client();
     283      client_g = network::Client::createSingleton();
    284284    else
    285       client_g = new network::Client(serverIp_, NETWORK_PORT);
     285      client_g = network::Client::createSingleton(serverIp_, NETWORK_PORT);
    286286    if(!ogre_->load(this->dataPath_)) abortImmediateForce(/* unable to load */);
    287287  }
     
    422422    ib->registerListener(console, &Testconsole::execute, '\n', false);
    423423    ib->registerListener(console, &Testconsole::hintandcomplete, '\t', true);
    424     ib->registerListener(console, &Testconsole::clear, '§', true);
     424    ib->registerListener(console, &Testconsole::clear, '', true);
    425425    ib->registerListener(console, &Testconsole::removeLast, '\b', true);
    426426    ib->registerListener(console, &Testconsole::exit, (char)0x1B, true);
Note: See TracChangeset for help on using the changeset viewer.