Changeset 1083
- Timestamp:
- Apr 16, 2008, 7:09:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/GameStateClient.cc
r1016 r1083 28 28 29 29 #include "core/CoreIncludes.h" 30 #include "core/BaseObject.h" 30 31 #include "Synchronisable.h" 31 32 #include "GameStateClient.h" … … 39 40 40 41 GameStateClient::GameStateClient() { 42 COUT(5) << "this: " << this << std::endl; 41 43 } 42 44 … … 110 112 if(!it){ 111 113 COUT(4) << "loadSnapshot:\tclassid: " << sync.classID << ", name: " << ID((unsigned int) sync.classID)->getName() << std::endl; 112 Synchronisable *no = (Synchronisable*)(ID((unsigned int) sync.classID)->fabricate());114 Synchronisable *no = dynamic_cast<Synchronisable *>(ID((unsigned int) sync.classID)->fabricate()); 113 115 no->objectID=sync.objectID; 114 116 no->classID=sync.classID; … … 117 119 if( !no->updateData(sync) && !no->create() ) 118 120 COUT(1) << "We couldn't create/update the object: " << sync.objectID << std::endl; 119 ++it;120 121 } 121 122 } else {
Note: See TracChangeset
for help on using the changeset viewer.