Changeset 3083 for code/branches/netp3/src/network/packet
- Timestamp:
- May 26, 2009, 8:11:37 PM (16 years ago)
- Location:
- code/branches/netp3/src/network/packet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp3/src/network/packet/Gamestate.cc
r3047 r3083 182 182 #ifndef NDEBUG 183 183 if(this->getID()%1000==0){ 184 std:: vector<uint32_t> v1;184 std::list<uint32_t> v1; 185 185 ObjectList<Synchronisable>::iterator it; 186 186 for (it = ObjectList<Synchronisable>::begin(); it != ObjectList<Synchronisable>::end(); ++it) { … … 194 194 } 195 195 else { 196 std:: vector<uint32_t>::iterator it2;196 std::list<uint32_t>::iterator it2; 197 197 for (it2 = v1.begin(); it2 != v1.end(); ++it2) { 198 198 if (it->getObjectID() == *it2) { … … 412 412 Gamestate* Gamestate::doSelection(unsigned int clientID, unsigned int targetSize){ 413 413 assert(data_); 414 std:: vector<obj>::iterator it;414 std::list<obj>::iterator it; 415 415 416 416 // allocate memory for new data … … 434 434 435 435 //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; 436 441 for(it=dataVector_.begin(); it!=dataVector_.end();){ 437 442 SynchronisableHeader oldobjectheader(origdata); -
code/branches/netp3/src/network/packet/Gamestate.h
r3047 r3083 129 129 private: 130 130 uint32_t calcGamestateSize(int32_t id, uint8_t mode=0x0); 131 std:: vector<obj> dataVector_;131 std::list<obj> dataVector_; 132 132 GamestateHeader* header_; 133 133 };
Note: See TracChangeset
for help on using the changeset viewer.