Changeset 3223 for code/branches/core4/src/network/synchronisable
- Timestamp:
- Jun 23, 2009, 7:28:48 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/network/synchronisable/Synchronisable.cc
r3214 r3223 73 73 if (creator) 74 74 { 75 Synchronisable* synchronisable_creator = dynamic_cast<Synchronisable*>(creator);75 Synchronisable* synchronisable_creator = orxonox_cast<Synchronisable>(creator); 76 76 if (synchronisable_creator && synchronisable_creator->objectMode_) 77 77 { … … 161 161 } 162 162 else 163 creator = dynamic_cast<BaseObject*>(synchronisable_creator);163 creator = orxonox_cast<BaseObject>(synchronisable_creator); 164 164 } 165 165 assert(getSynchronisable(header.getObjectID())==0); //make sure no object with this id exists 166 166 BaseObject *bo = id->fabricate(creator); 167 167 assert(bo); 168 Synchronisable *no = dynamic_cast<Synchronisable *>(bo);168 Synchronisable *no = orxonox_cast<Synchronisable>(bo); 169 169 assert(no); 170 170 no->objectID=header.getObjectID();
Note: See TracChangeset
for help on using the changeset viewer.