Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 5:53:09 PM (16 years ago)
Author:
scheusso
Message:
  • some adjustments in client handling (we use unsigned int as id now everywhere)
  • fixed a problem with clientinformation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/network/Synchronisable.cc

    r1989 r1990  
    230230   *             0x2: client->server (not recommended)
    231231   *             0x3: bidirectional
    232    * @return true: if !isMyTick or if everything was successfully saved
     232   * @return true: if !doSync or if everything was successfully saved
    233233   */
    234234  bool Synchronisable::getData(uint8_t*& mem, unsigned int id, int mode){
    235235    //if this tick is we dont synchronise, then abort now
    236     if(!isMyTick(id))
     236    if(!doSync(id))
    237237      return true;
    238238    //std::cout << "inside getData" << std::endl;
     
    363363  */
    364364  uint32_t Synchronisable::getSize(unsigned int id, int mode){
    365     if(!isMyTick(id))
     365    if(!doSync(id))
    366366      return 0;
    367367    int tsize=sizeof(synchronisableHeader);
     
    392392   * @return true/false
    393393   */
    394   bool Synchronisable::isMyTick(unsigned int id){
     394  bool Synchronisable::doSync(unsigned int id){
    395395    return ( (objectMode_&state_)!=0 );
    396396  }
Note: See TracChangeset for help on using the changeset viewer.