Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 23, 2009, 2:53:10 PM (15 years ago)
Author:
scheusso
Message:

further improvements in network (eliminated double calls of Synchronisable::getSize)

File:
1 edited

Legend:

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

    r2823 r2832  
    238238   * @return true: if !doSync or if everything was successfully saved
    239239   */
    240   bool Synchronisable::getData(uint8_t*& mem, int32_t id, uint8_t mode){
     240  uint32_t Synchronisable::getData(uint8_t*& mem, int32_t id, uint8_t mode){
    241241    if(mode==0x0)
    242242      mode=state_;
    243243    //if this tick is we dont synchronise, then abort now
    244244    if(!doSync(id, mode))
    245       return true;
     245      return 0;
    246246    uint32_t tempsize = 0;
    247247    if (this->classID==0)
     
    279279    assert(tempsize==size);
    280280#endif
    281     return true;
     281    return tempsize;
    282282  }
    283283
Note: See TracChangeset for help on using the changeset viewer.