Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2992 for code/branches/netp3


Ignore:
Timestamp:
May 19, 2009, 10:05:30 PM (16 years ago)
Author:
scheusso
Message:

some fixes (in tick, getDeltaTime) and error output

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

Legend:

Unmodified
Added
Removed
  • code/branches/netp3/src/network/Client.cc

    r2990 r2992  
    142142  void Client::update(const Clock& time){
    143143    //this steers our network frequency
    144     timeSinceLastUpdate_+=time;
     144    timeSinceLastUpdate_+=time.getDeltaTime();
    145145    if(timeSinceLastUpdate_>=NETWORK_PERIOD){
    146146      timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD;
  • code/branches/netp3/src/network/ConnectionManager.cc

    r2990 r2992  
    199199          printf("ConnectionManager: ENet returned with an error\n");
    200200          quit_=true;
     201          printf("waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhh\n");
    201202          continue;
    202           printf("waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhh");
    203203          // add some error handling here ========================
    204204        }
     
    208208        // log handling ================
    209209        case ENET_EVENT_TYPE_CONNECT:
    210           printf("====================================================================");
     210//             printf("====================================================================");
    211211        case ENET_EVENT_TYPE_DISCONNECT:
    212212        case ENET_EVENT_TYPE_RECEIVE:
Note: See TracChangeset for help on using the changeset viewer.