Changeset 3102 for code/trunk/src/network
- Timestamp:
- May 28, 2009, 3:05:54 AM (15 years ago)
- Location:
- code/trunk/src/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/GamestateClient.cc
r2662 r3102 111 111 packet::Gamestate *GamestateClient::getGamestate(){ 112 112 packet::Gamestate *gs = new packet::Gamestate(); 113 if(!gs->collectData(0 )){113 if(!gs->collectData(0,0x2)){ 114 114 delete gs; 115 115 return 0; … … 172 172 COUT(5) << "successfully undiffed gamestate id: " << undiffed->getID() << std::endl; 173 173 } 174 if(gs->spreadData( ))174 if(gs->spreadData(0x2)) 175 175 return gs; 176 176 else -
code/trunk/src/network/GamestateManager.cc
r3084 r3102 102 102 delete reference; 103 103 reference = new packet::Gamestate(); 104 if(!reference->collectData(++id_ )){ //we have no data to send104 if(!reference->collectData(++id_, 0x1)){ //we have no data to send 105 105 delete reference; 106 106 reference=0; … … 200 200 } 201 201 assert(!gs->isDiffed()); 202 return gs->spreadData( );202 return gs->spreadData(0x1); 203 203 } 204 204 -
code/trunk/src/network/Server.cc
r3084 r3102 364 364 packet::Gamestate *g = new packet::Gamestate(); 365 365 g->setClientID(temp->getID()); 366 b = g->collectData(0 );366 b = g->collectData(0,0x1); 367 367 if(!b) 368 368 return false; //no data for the client -
code/trunk/src/network/synchronisable/SynchronisableVariable.h
r3084 r3102 122 122 template <class T> inline uint32_t SynchronisableVariable<T>::getData(uint8_t*& mem, uint8_t mode) 123 123 { 124 if ( state_== this->mode_ )124 if ( mode == this->mode_ ) 125 125 { 126 126 saveAndIncrease( this->variable_, mem );
Note: See TracChangeset
for help on using the changeset viewer.