Changeset 569 for code/branches/FICN/src/network
- Timestamp:
- Dec 17, 2007, 12:21:27 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/GameStateManager.cc
r568 r569 100 100 //get size of the synchronisable 101 101 tempsize=it->getSize(); 102 COUT(2) << "size of synchronisable: " << tempsize << std::endl;102 //COUT(2) << "size of synchronisable: " << tempsize << std::endl; 103 103 // add place for data and 3 ints (length,classid,objectid) 104 104 totalsize+=tempsize+3*sizeof(int); -
code/branches/FICN/src/network/Synchronisable.cc
r565 r569 113 113 retVal.data=mem; 114 114 // copy to location 115 //CHANGED: REMOVED DECLARATION int n=0 FROM LOOP116 115 int n=0; 117 116 for(i=syncList.begin(); n<datasize && i!=syncList.end(); i++){ 118 std::memcpy(retVal.data+n, (const void*)(i->size), sizeof(int)); 117 //COUT(2) << "size of variable: " << i->size << std::endl; 118 //COUT(2) << "size of variable: " << i->size << std::endl; 119 std::memcpy(retVal.data+n, (const void*)(&(i->size)), sizeof(int)); 119 120 n+=sizeof(int); 120 121 switch(i->type){
Note: See TracChangeset
for help on using the changeset viewer.