Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 569 for code/branches


Ignore:
Timestamp:
Dec 17, 2007, 12:21:27 PM (17 years ago)
Author:
scheusso
Message:

bugfix in Synchronisable

Location:
code/branches/FICN/src/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/GameStateManager.cc

    r568 r569  
    100100    //get size of the synchronisable
    101101    tempsize=it->getSize();
    102     COUT(2) << "size of synchronisable: " << tempsize << std::endl;
     102    //COUT(2) << "size of synchronisable: " << tempsize << std::endl;
    103103    // add place for data and 3 ints (length,classid,objectid)
    104104    totalsize+=tempsize+3*sizeof(int);
  • code/branches/FICN/src/network/Synchronisable.cc

    r565 r569  
    113113  retVal.data=mem;
    114114  // copy to location
    115   //CHANGED: REMOVED DECLARATION int n=0 FROM LOOP
    116115  int n=0;
    117116  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));
    119120    n+=sizeof(int);
    120121    switch(i->type){
Note: See TracChangeset for help on using the changeset viewer.