- Timestamp:
- May 18, 2006, 4:33:15 PM (19 years ago)
- Location:
- branches/network/src
- Files:
-
- 4 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 -
branches/network/src/world_entities/space_ships/space_ship.cc
r7444 r7697 222 222 223 223 registerVar( new SynchronizeableVector( &velocity, &velocity, "velocity" ) ); 224 registerVar( new SynchronizeableQuaternion( &mouseDir, &mouseDir, "mousedir" ) );225 226 registerVar( new SynchronizeableBool( &bUp, &bUp, "bUp" ) );227 registerVar( new SynchronizeableBool( &bDown, &bDown, "bDown" ) );228 registerVar( new SynchronizeableBool( &bLeft, &bLeft, "bLeft" ) );229 registerVar( new SynchronizeableBool( &bRight, &bRight, "bRight" ) );230 registerVar( new SynchronizeableBool( &bAscend, &bAscend, "bAscend" ) );231 registerVar( new SynchronizeableBool( &bDescend, &bDescend, "bDescend" ) );232 registerVar( new SynchronizeableBool( &bRollL, &bRollL, "bRollL" ) );233 registerVar( new SynchronizeableBool( &bRollR, &bRollR, "bRollR" ) );224 registerVar( new SynchronizeableQuaternion( &mouseDir, &mouseDir, "mousedir", PERMISSION_OWNER ) ); 225 226 registerVar( new SynchronizeableBool( &bUp, &bUp, "bUp", PERMISSION_OWNER ) ); 227 registerVar( new SynchronizeableBool( &bDown, &bDown, "bDown", PERMISSION_OWNER ) ); 228 registerVar( new SynchronizeableBool( &bLeft, &bLeft, "bLeft", PERMISSION_OWNER ) ); 229 registerVar( new SynchronizeableBool( &bRight, &bRight, "bRight", PERMISSION_OWNER ) ); 230 registerVar( new SynchronizeableBool( &bAscend, &bAscend, "bAscend", PERMISSION_OWNER ) ); 231 registerVar( new SynchronizeableBool( &bDescend, &bDescend, "bDescend", PERMISSION_OWNER ) ); 232 registerVar( new SynchronizeableBool( &bRollL, &bRollL, "bRollL", PERMISSION_OWNER ) ); 233 registerVar( new SynchronizeableBool( &bRollR, &bRollR, "bRollR", PERMISSION_OWNER ) ); 234 234 } 235 235
Note: See TracChangeset
for help on using the changeset viewer.