Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2953 for code/branches/netp2


Ignore:
Timestamp:
May 4, 2009, 5:04:58 PM (16 years ago)
Author:
scheusso
Message:

some changes for testing purpose

Location:
code/branches/netp2/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp2/src/network/ConnectionManager.cc

    r2836 r2953  
    190190
    191191    event = new ENetEvent;
    192     while(!quit){
     192    while(!quit)
     193    {
    193194      { //mutex scope
    194195        boost::recursive_mutex::scoped_lock lock(enet_mutex_g);
    195196        if(enet_host_service(server, event, NETWORK_WAIT_TIMEOUT)<0){
    196197          // we should never reach this point
    197           assert(0);
    198198          quit=true;
    199199          continue;
     200          printf("waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhh");
    200201          // add some error handling here ========================
    201202        }
     
    205206        // log handling ================
    206207        case ENET_EVENT_TYPE_CONNECT:
     208          printf("====================================================================");
    207209        case ENET_EVENT_TYPE_DISCONNECT:
    208210        case ENET_EVENT_TYPE_RECEIVE:
  • code/branches/netp2/src/network/Server.cc

    r2949 r2953  
    155155    processQueue();
    156156    //this steers our network frequency
    157     timeSinceLastUpdate_+=time;
    158     if(timeSinceLastUpdate_>=NETWORK_PERIOD){
     157//     timeSinceLastUpdate_+=time;
     158//     if(timeSinceLastUpdate_>=NETWORK_PERIOD){
    159159      timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD;
    160160      gamestates_->processGamestates();
    161161      updateGamestate();
    162162      FunctionCallManager::sendCalls();
    163     }
     163//     }
    164164  }
    165165
Note: See TracChangeset for help on using the changeset viewer.