Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2010, 9:41:57 PM (15 years ago)
Author:
scheusso
Message:

some fixes
reactivating acking and gamestate diffing

Location:
code/branches/network5/src/libraries/network/packet
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network5/src/libraries/network/packet/FunctionCalls.cc

    r7777 r7780  
    7171    FunctionCall fctCall;
    7272    fctCall.loadData(temp);
    73     if( this->minGamestateID_ > host->getLastProcessedGamestateID(this->getPeerID()) || !fctCall.execute() )
     73    if( !fctCall.execute() )
    7474    {
    7575      FunctionCallManager::bufferIncomingFunctionCall( fctCall, minGamestateID_, this->getPeerID() );
  • code/branches/network5/src/libraries/network/packet/Packet.cc

    r7777 r7780  
    179179  assert(ClientInformation::findClient(&peer->address)->getID() != static_cast<unsigned int>(-2) || !Host::isServer());
    180180  unsigned int peerID = ClientInformation::findClient(&peer->address)->getID();
     181  // HACK
     182  if( peerID==static_cast<unsigned int>(-2))
     183    peerID = NETWORK_PEER_ID_SERVER;
    181184  Packet *p = 0;
    182185//   COUT(6) << "packet type: " << *(Type::Value *)&data[_PACKETID] << std::endl;
Note: See TracChangeset for help on using the changeset viewer.