- Timestamp:
- Dec 16, 2008, 6:01:13 PM (16 years ago)
- Location:
- code/branches/presentation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation
-
code/branches/presentation/src/network/packet/Gamestate.cc
r2476 r2485 31 31 #include "../synchronisable/Synchronisable.h" 32 32 #include "../TrafficControl.h" 33 #include "core/Core.h" 33 34 #include "core/CoreIncludes.h" 34 35 #include "core/Iterator.h" … … 151 152 if(!s) 152 153 { 153 Synchronisable::fabricate(mem, mode); 154 if (!Core::isMaster()) 155 Synchronisable::fabricate(mem, mode); 156 else 157 mem += objectheader->size; 154 158 // COUT(0) << "could not fabricate synchronisable: " << objectheader->objectID << " classid: " << objectheader->classID << " creator: " << objectheader->creatorID << endl; 155 159 // else … … 170 174 if (it->objectMode_ != 0x0) { 171 175 COUT(0) << "Found object with OBJECTID_UNKNOWN on the client with objectMode != 0x0!" << std::endl; 176 COUT(0) << "Possible reason for this error: Client created a synchronized object without the Server's approval." << std::endl; 172 177 assert(false); 173 178 } … … 384 389 //call TrafficControl 385 390 TrafficControl::getInstance()->processObjectList( clientID, HEADER->id, &dataMap_ ); 386 391 387 392 //copy in the zeros 388 393 for(it=dataMap_.begin(); it!=dataMap_.end();){ 389 394 // if((*it).objSize==0) 390 395 // continue; 396 // if(it->second->getSize(HEADER->id)==0) // merged from objecthierarchy2, doesn't work anymore; TODO: change this 397 // continue; // merged from objecthierarchy2, doesn't work anymore; TODO: change this 391 398 oldobjectheader = (synchronisableHeader*)origdata; 392 399 newobjectheader = (synchronisableHeader*)newdata;
Note: See TracChangeset
for help on using the changeset viewer.