Changeset 2035 for code/branches/objecthierarchy/src
- Timestamp:
- Oct 28, 2008, 10:52:12 PM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/GamestateManager.cc
r2034 r2035 81 81 for(it = gamestateQueue.begin(); it!=gamestateQueue.end(); it++){ 82 82 bool b = processGamestate(it->second); 83 //assert(b);83 assert(b); 84 84 delete it->second; 85 85 } -
code/branches/objecthierarchy/src/network/Synchronisable.cc
r2034 r2035 154 154 if (header->creatorID != OBJECTID_UNKNOWN) 155 155 { 156 Synchronisable* synchronisable_creator = Synchronisable::getSynchronisable(header->creatorID); 157 if (!synchronisable_creator) 158 return 0; 159 else 160 creator = dynamic_cast<orxonox::BaseObject*>(synchronisable_creator); 156 Synchronisable* synchronisable_creator = Synchronisable::getSynchronisable(header->creatorID); 157 if (!synchronisable_creator) 158 { 159 mem += header->size; //.TODO: this suckz.... remove size from header 160 return 0; 161 } 162 else 163 creator = dynamic_cast<orxonox::BaseObject*>(synchronisable_creator); 161 164 } 162 165 orxonox::BaseObject *bo = id->fabricate(creator); … … 170 173 // update data and create object/entity... 171 174 bool b = no->updateData(mem, mode, true); 172 //assert(b);175 assert(b); 173 176 if (b) 174 177 { -
code/branches/objecthierarchy/src/network/packet/Gamestate.cc
r2034 r2035 157 157 if(!s) 158 158 { 159 s = Synchronisable::fabricate(mem, mode); 160 return false; 161 // if(!s) 162 // return false; 159 Synchronisable::fabricate(mem, mode); 163 160 } 164 161 else 165 162 { 166 163 bool b = s->updateData(mem, mode); 167 //assert(b);164 assert(b); 168 165 //if(!s->updateData(mem, mode)) 169 166 //return false;
Note: See TracChangeset
for help on using the changeset viewer.