Changeset 505 for code/branches/FICN/src/network/GameStateClient.cc
- Timestamp:
- Dec 12, 2007, 11:28:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/GameStateClient.cc
r436 r505 59 59 removeObject(it); 60 60 } 61 if(it==0){ // add the new object 62 // =================== factory command to add object 63 // can we be sure the object really was added? 61 if(it==0){ 62 orxonox::BaseObject *no = ID(sync.classID)->fabricate(); 63 ((Synchronisable *)no)->objectID=sync.objectID; 64 ((Synchronisable *)no)->classID=sync.classID; 64 65 it=orxonox::ObjectList<Synchronisable>::end(); 65 it->objectID=sync.objectID;66 it->classID=sync.classID;67 66 } 68 67 } else { … … 72 71 << sync.objectID << "; classID: " << sync.classID << std::endl; 73 72 } 74 73 ++it; 75 74 } 76 75
Note: See TracChangeset
for help on using the changeset viewer.