Changeset 2041 for code/branches/objecthierarchy/src/network
- Timestamp:
- Oct 29, 2008, 12:48:11 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Synchronisable.cc
r2035 r2041 77 77 if (creator) 78 78 { 79 if (creator->isA(Class(Synchronisable))) 79 Synchronisable* synchronisable_creator = dynamic_cast<Synchronisable*>(creator); 80 if (synchronisable_creator && synchronisable_creator->objectMode_) 80 81 { 81 Synchronisable* synchronisable_creator = dynamic_cast<Synchronisable*>(creator);82 82 this->creatorID = synchronisable_creator->getObjectID(); 83 83 } … … 147 147 synchronisableHeader *header = (synchronisableHeader *)mem; 148 148 149 COUT( 3) << "fabricating object with id: " << header->objectID << std::endl;149 COUT(4) << "fabricating object with id: " << header->objectID << std::endl; 150 150 151 151 orxonox::Identifier* id = ClassByID(header->classID); … … 170 170 no->creatorID=header->creatorID; //TODO: remove this 171 171 no->classID=header->classID; 172 COUT( 3) << "fabricate objectID: " << no->objectID << " classID: " << no->classID << std::endl;172 COUT(4) << "fabricate objectID: " << no->objectID << " classID: " << no->classID << std::endl; 173 173 // update data and create object/entity... 174 174 bool b = no->updateData(mem, mode, true); -
code/branches/objecthierarchy/src/network/packet/Gamestate.cc
r2035 r2041 254 254 HEADER->compressed = true; 255 255 assert(HEADER->compressed); 256 COUT( 3) << "gamestate compress datasize: " << HEADER->datasize << " compsize: " << HEADER->compsize << std::endl;256 COUT(4) << "gamestate compress datasize: " << HEADER->datasize << " compsize: " << HEADER->compsize << std::endl; 257 257 return true; 258 258 } … … 261 261 assert(HEADER); 262 262 assert(HEADER->compressed); 263 COUT( 3) << "GameStateClient: uncompressing gamestate. id: " << HEADER->id << ", baseid: " << HEADER->base_id << ", datasize: " << HEADER->datasize << ", compsize: " << HEADER->compsize << std::endl;263 COUT(4) << "GameStateClient: uncompressing gamestate. id: " << HEADER->id << ", baseid: " << HEADER->base_id << ", datasize: " << HEADER->datasize << ", compsize: " << HEADER->compsize << std::endl; 264 264 unsigned int datasize = HEADER->datasize; 265 265 unsigned int compsize = HEADER->compsize;
Note: See TracChangeset
for help on using the changeset viewer.