Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2010, 4:27:51 PM (14 years ago)
Author:
scheusso
Message:

fixed a bug in gamestate diffing which slowed down the diff process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/libraries/network/synchronisable/Synchronisable.h

    r7153 r7159  
    8989        { return 14; }
    9090      inline uint16_t getDataSize() const
    91         { return (*(uint16_t*)data_) & 0x7FFF; } //only use the first 31 bits
     91        { return (*(uint16_t*)data_) & 0x7FFF; } //only use the first 15 bits
    9292      inline void setDataSize(uint16_t size)
    93         { *(uint16_t*)(data_) = (size & 0x7FFFFFFF) | (*(uint16_t*)(data_) & 0x8000 ); }
     93        { *(uint16_t*)(data_) = (size & 0x7FFF) | (*(uint16_t*)(data_) & 0x8000 ); }
    9494      inline bool isDiffed() const
    9595        { return ( (*(uint16_t*)data_) & 0x8000 ) == 0x8000; }
Note: See TracChangeset for help on using the changeset viewer.