Changeset 10114 in orxonox.OLD for trunk/src/lib/network/network_stream.cc
- Timestamp:
- Dec 19, 2006, 11:55:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_stream.cc
r9869 r10114 128 128 129 129 this->bRedirect = false; 130 this->bSoftRedirect = false; 130 131 131 132 this->currentState = 0; … … 716 717 // init the new message manager 717 718 MessageManager::getInstance()->setUniqueID( it->second.handshake->getMessageManagerId() ); 719 ObjectListBase::replaceIDMap( *(it->second.handshake->getClassIdList()) ); 718 720 } 719 721 … … 966 968 967 969 // if handshake not finished only sync handshake 968 if ( peer->second.handshake && Handshake::staticClassID() != sync.get LeafClassID())970 if ( peer->second.handshake && Handshake::staticClassID() != sync.getClassID() ) 969 971 continue; 970 972 … … 972 974 if ( ( SharedNetworkData::getInstance()->isMasterServer() || 973 975 SharedNetworkData::getInstance()->isProxyServerActive() && peer->second.isClient()) 974 && Handshake::staticClassID() == sync.get LeafClassID() && sync.getUniqueID() != peer->second.userId )976 && Handshake::staticClassID() == sync.getClassID() && sync.getUniqueID() != peer->second.userId ) 975 977 continue; 976 978 977 979 /* list of synchronizeables that will never be synchronized over the network: */ 978 980 // do not sync null parent 979 if ( NullParent::staticClassID() == sync.get LeafClassID())981 if ( NullParent::staticClassID() == sync.getClassID()) 980 982 continue; 981 983 982 984 983 assert( sync.get LeafClassID() != 0);985 assert( sync.getClassID() != 0); 984 986 985 987 assert( offset + INTSIZE <= UDP_PACKET_SIZE ); … … 1188 1190 if( NullParent::staticClassID() == leafClassId || Synchronizeable::staticClassID() == leafClassId || NetworkGameManager::staticClassID() == leafClassId) 1189 1191 { 1190 PRINTF( 1)("Don't create Object with ID %x, ignored!\n", (int)leafClassId);1192 PRINTF(0)("Don't create Object with ID %d, ignored!\n", (int)leafClassId); 1191 1193 offset += syncDataLength; 1192 1194 continue; 1193 1195 } 1194 1196 else 1195 ; /// FIXME CLASS_ID :: b = Factory::fabricate( leafClassId);1196 1197 b = Factory::fabricate( ObjectListBase::retrieveIdentity( leafClassId ) ); 1198 1197 1199 if ( !b ) 1198 1200 { 1199 PRINTF(1)("Could not fabricate Object with classID % x\n", leafClassId);1201 PRINTF(1)("Could not fabricate Object with classID %d\n", leafClassId); 1200 1202 offset += syncDataLength; 1201 1203 continue; … … 1208 1210 sync->setSynchronized(true); 1209 1211 1210 PRINTF( 0)("Fabricated %s with id %d\n", sync->getClassCName(), sync->getUniqueID());1212 PRINTF(1)("Fabricated %s with id %d\n", sync->getClassCName(), sync->getUniqueID()); 1211 1213 } 1212 1214 else 1213 1215 { 1214 PRINTF(1)("Class with ID % xis not a synchronizeable!\n", (int)leafClassId);1216 PRINTF(1)("Class with ID %d is not a synchronizeable!\n", (int)leafClassId); 1215 1217 delete b; 1216 1218 offset += syncDataLength;
Note: See TracChangeset
for help on using the changeset viewer.