Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2009, 8:11:37 PM (16 years ago)
Author:
scheusso
Message:

some changes/fixes in gamestates and trafficcontrol

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

Legend:

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

    r3047 r3083  
    182182#ifndef NDEBUG
    183183  if(this->getID()%1000==0){
    184     std::vector<uint32_t> v1;
     184    std::list<uint32_t> v1;
    185185    ObjectList<Synchronisable>::iterator it;
    186186    for (it = ObjectList<Synchronisable>::begin(); it != ObjectList<Synchronisable>::end(); ++it) {
     
    194194      }
    195195      else {
    196         std::vector<uint32_t>::iterator it2;
     196        std::list<uint32_t>::iterator it2;
    197197        for (it2 = v1.begin(); it2 != v1.end(); ++it2) {
    198198          if (it->getObjectID() == *it2) {
     
    412412Gamestate* Gamestate::doSelection(unsigned int clientID, unsigned int targetSize){
    413413  assert(data_);
    414   std::vector<obj>::iterator it;
     414  std::list<obj>::iterator it;
    415415
    416416  // allocate memory for new data
     
    434434
    435435  //copy in the zeros
     436//   std::list<obj>::iterator itt;
     437//   COUT(0) << "myvector contains:";
     438//   for ( itt=dataVector_.begin() ; itt!=dataVector_.end(); itt++ )
     439//     COUT(0) << " " << (*itt).objID;
     440//   COUT(0) << endl;
    436441  for(it=dataVector_.begin(); it!=dataVector_.end();){
    437442    SynchronisableHeader oldobjectheader(origdata);
  • code/branches/netp3/src/network/packet/Gamestate.h

    r3047 r3083  
    129129  private:
    130130    uint32_t calcGamestateSize(int32_t id, uint8_t mode=0x0);
    131     std::vector<obj> dataVector_;
     131    std::list<obj> dataVector_;
    132132    GamestateHeader* header_;
    133133};
Note: See TracChangeset for help on using the changeset viewer.