Changeset 1800 for code/branches/network/src/network/Synchronisable.cc
- Timestamp:
- Sep 20, 2008, 12:51:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Synchronisable.cc
r1794 r1800 364 364 365 365 /** 366 * This function determines, wheter the object should be saved to the bytestream (according to its sync frequency)366 * This function determines, wheter the object should be saved to the bytestream (according to its syncmode/direction) 367 367 * @param id gamestate id 368 368 * @return true/false 369 369 */ 370 370 bool Synchronisable::isMyTick(unsigned int id){ 371 // return true; 371 return ( (objectMode_&state_)!=0 ); 372 } 373 374 bool Synchronisable::doSelection(unsigned int id){ 372 375 return ( id==0 || id%objectFrequency_==objectID%objectFrequency_ ) && ((objectMode_&state_)!=0); 373 376 }
Note: See TracChangeset
for help on using the changeset viewer.