Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2008, 11:09:34 PM (16 years ago)
Author:
scheusso
Message:

diffing work now: wohoo

File:
1 edited

Legend:

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

    r1184 r1199  
    230230    int id = data->id;
    231231    COUT(5) << "received gamestate id: " << data->id << std::endl;
    232     gamestate.pushGameState(data);
    233     client_connection.addPacket(pck_gen.acknowledgement(id));
    234     client_connection.sendPackets();
    235     return;
     232    if(gamestate.pushGameState(data)){
     233      client_connection.addPacket(pck_gen.acknowledgement(id));
     234      if(!client_connection.sendPackets())
     235        COUT(2) << "Could not send acknowledgment" << std::endl;
     236    }
    236237  }
    237238
Note: See TracChangeset for help on using the changeset viewer.