Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2008, 11:47:11 AM (15 years ago)
Author:
scheusso
Message:

some cleaning up in TrafficControl
small bugfix in Gamestate
priorities should work quite well now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/packet/Gamestate.cc

    r2417 r2419  
    361361 
    362362  //copy in the zeros
    363   for(it=dataMap_.begin(); it!=dataMap_.end(); it++){
     363  for(it=dataMap_.begin(); it!=dataMap_.end();){
    364364    oldobjectheader = (synchronisableHeader*)origdata;
    365365    newobjectheader = (synchronisableHeader*)newdata;
     
    371371      memcpy(newdata, origdata, objectsize);
    372372      assert(newobjectheader->dataAvailable==true);
     373      ++it;
    373374    }else{
    374375      *newobjectheader = *oldobjectheader;
     
    382383  }
    383384  ((GamestateHeader*)gdata)->datasize = destsize;
     385  assert(destsize==HEADER->datasize);
    384386  assert(destsize!=0);
    385387  return gs;
Note: See TracChangeset for help on using the changeset viewer.