Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2008, 12:59:48 AM (16 years ago)
Author:
scheusso
Message:

Fix in Projectiles (network fix)
different improvements in synchronisable and gamestates

File:
1 edited

Legend:

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

    r1827 r1834  
    8080    return false;
    8181  }
    82 
     82 
     83#ifndef NDEBUG
     84  std::list<Synchronisable*> slist;
     85  std::list<Synchronisable*>::iterator iit;
     86#endif
    8387  //start collect data synchronisable by synchronisable
    8488  unsigned char *mem=data_;
     
    101105    }// stop allocate additional memory
    102106
     107#ifndef NDEBUG
     108    for(iit=slist.begin(); iit!=slist.end(); iit++)
     109      assert((*iit)!=*it);
     110    slist.push_back(*it);
     111#endif
     112   
    103113    //if(it->doSelection(id))
    104114    dataMap_[mem-data_]=(*it);  // save the mem location of the synchronisable data
     
    143153    {
    144154      s = Synchronisable::fabricate(mem, mode);
    145       if(!s)
    146         return false;
     155      assert(s);
     156//       if(!s)
     157//         return false;
    147158    }
    148159    else
    149160    {
    150       if(!s->updateData(mem, mode))
    151         return false;
     161      assert(s->updateData(mem, mode));
     162      //if(!s->updateData(mem, mode))
     163        //return false;
    152164    }
    153165  }
Note: See TracChangeset for help on using the changeset viewer.