Changeset 1834 for code/branches/network/src/network/packet/Gamestate.cc
- Timestamp:
- Sep 26, 2008, 12:59:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/packet/Gamestate.cc
r1827 r1834 80 80 return false; 81 81 } 82 82 83 #ifndef NDEBUG 84 std::list<Synchronisable*> slist; 85 std::list<Synchronisable*>::iterator iit; 86 #endif 83 87 //start collect data synchronisable by synchronisable 84 88 unsigned char *mem=data_; … … 101 105 }// stop allocate additional memory 102 106 107 #ifndef NDEBUG 108 for(iit=slist.begin(); iit!=slist.end(); iit++) 109 assert((*iit)!=*it); 110 slist.push_back(*it); 111 #endif 112 103 113 //if(it->doSelection(id)) 104 114 dataMap_[mem-data_]=(*it); // save the mem location of the synchronisable data … … 143 153 { 144 154 s = Synchronisable::fabricate(mem, mode); 145 if(!s) 146 return false; 155 assert(s); 156 // if(!s) 157 // return false; 147 158 } 148 159 else 149 160 { 150 if(!s->updateData(mem, mode)) 151 return false; 161 assert(s->updateData(mem, mode)); 162 //if(!s->updateData(mem, mode)) 163 //return false; 152 164 } 153 165 }
Note: See TracChangeset
for help on using the changeset viewer.