Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 14, 2009, 6:01:05 PM (16 years ago)
Author:
scheusso
Message:

fixed a problem with gamestate caching and diffing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/packet/Gamestate.cc

    r2655 r2660  
    7070  flags_ = flags_ | PACKET_FLAG_GAMESTATE;
    7171  data_=data;
     72  header_ = new GamestateHeader(data_);
     73}
     74
     75Gamestate::Gamestate(const Gamestate& g) :
     76    Packet( *(Packet*)&g )
     77{
     78  flags_ = flags_ | PACKET_FLAG_GAMESTATE;
    7279  header_ = new GamestateHeader(data_);
    7380}
     
    146153bool Gamestate::spreadData(uint8_t mode)
    147154{
     155  COUT(4) << "processing gamestate with id " << header_->getID() << endl;
    148156  assert(data_);
    149157  assert(!header_->isCompressed());
Note: See TracChangeset for help on using the changeset viewer.