Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 20, 2008, 12:51:16 AM (16 years ago)
Author:
scheusso
Message:

client-based object selection (in gamestate transmission) should now work

File:
1 edited

Legend:

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

    r1794 r1800  
    364364
    365365  /**
    366    * This function determines, wheter the object should be saved to the bytestream (according to its syncfrequency)
     366   * This function determines, wheter the object should be saved to the bytestream (according to its syncmode/direction)
    367367   * @param id gamestate id
    368368   * @return true/false
    369369   */
    370370  bool Synchronisable::isMyTick(unsigned int id){
    371 //     return true;
     371    return ( (objectMode_&state_)!=0 );
     372  }
     373 
     374  bool Synchronisable::doSelection(unsigned int id){
    372375    return ( id==0 || id%objectFrequency_==objectID%objectFrequency_ ) && ((objectMode_&state_)!=0);
    373376  }
Note: See TracChangeset for help on using the changeset viewer.