Changeset 7697 in orxonox.OLD for branches/network/src/lib
- Timestamp:
- May 18, 2006, 4:33:15 PM (19 years ago)
- Location:
- branches/network/src/lib/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/message_manager.cc
r7693 r7697 202 202 203 203 204 for ( std::list<NetworkMessage>::iterator it = incomingMessabeBuffer.begin(); it != incomingMessabeBuffer.end(); it++)205 { 206 if ( (*(messageHandlerMap[it->messageId].cb))( it->messageId, data + i, it->length, messageHandlerMap[it->messageId].someData, it->number ) )204 for ( std::list<NetworkMessage>::iterator it = incomingMessabeBuffer.begin(); it != incomingMessabeBuffer.end(); ) 205 { 206 if ( (*(messageHandlerMap[it->messageId].cb))( it->messageId, it->data, it->length, messageHandlerMap[it->messageId].someData, it->number ) ) 207 207 { 208 208 std::list<NetworkMessage>::iterator delIt = it; 209 if ( it->data ) 210 delete it->data; 209 211 it++; 210 212 incomingMessabeBuffer.erase( delIt ); -
branches/network/src/lib/network/network_game_manager.cc
r7694 r7697 53 53 this->setClassID(CL_NETWORK_GAME_MANAGER, "NetworkGameManager"); 54 54 55 hasRequestedWorld = false;56 55 this->setSynchronized(true); 56 57 MessageManager::getInstance()->registerMessageHandler( MSGID_YOU_ARE, youAreHandler, NULL ); 57 58 } 58 59 … … 682 683 } else 683 684 { 684 PRINTF(1)("UniqueID is not a Playable\n");685 PRINTF(1)("UniqueID %d is not a Playable\n", uniqueID); 685 686 } 686 687 } … … 943 944 if ( (*it)->getUniqueID()==uniqueId ) 944 945 { 945 if ( (*it)->isA( CL_PLAYABLE ) ) 946 { 947 break; 948 } 946 break; 949 947 } 950 948 } 951 949 952 if ( it !=NetworkGameManager::getInstance()->networkStream->getSyncEnd() )950 if ( it == NetworkGameManager::getInstance()->networkStream->getSyncEnd() ) 953 951 return false; 954 952 -
branches/network/src/lib/network/network_game_manager.h
r7693 r7697 121 121 #endif 122 122 static NetworkGameManager* singletonRef; 123 bool hasRequestedWorld;124 123 }; 125 124
Note: See TracChangeset
for help on using the changeset viewer.