Changeset 6683 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- Jan 24, 2006, 11:21:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/synchronizeable.cc
r6678 r6683 20 20 #include "network_stream.h" 21 21 #include "netdefs.h" 22 23 #include "state.h" 22 24 23 25 #include "assert.h" … … 43 45 this->bSynchronize = false; 44 46 45 NetworkStream* nd = SharedNetworkData::getInstance()->getDefaultSyncStream(); 46 assert(nd != NULL); 47 nd->connectSynchronizeable(*this); 48 this->setUniqueID(SharedNetworkData::getInstance()->getNewUniqueID()); 47 if( State::isOnline()) 48 { 49 NetworkStream* nd = SharedNetworkData::getInstance()->getDefaultSyncStream(); 50 assert(nd != NULL); 51 nd->connectSynchronizeable(*this); 52 this->setUniqueID(SharedNetworkData::getInstance()->getNewUniqueID()); 53 } 49 54 } 50 55
Note: See TracChangeset
for help on using the changeset viewer.