Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8306 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jun 10, 2006, 11:15:35 AM (18 years ago)
Author:
rennerc
Message:

memoryleak—

Location:
branches/network/src/lib/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.cc

    r8301 r8306  
    194194 
    195195  assert( Converter::intToByteArray( uniqueId, buf, INTSIZE ) == INTSIZE );
    196  
     196
    197197  MessageManager::getInstance()->sendMessage( MSGID_DELETESYNCHRONIZEABLE, buf, INTSIZE, RT_ALL_NOT_ME, 0, MP_HIGHBANDWIDTH );
    198198}
  • branches/network/src/lib/network/synchronizeable.cc

    r8301 r8306  
    7070    this->networkStream->disconnectSynchronizeable(*this);
    7171 
    72   if ( this->isServer() && this->beSynchronized() && this->getUniqueID() > 0 )
     72  if ( this->isServer() && this->beSynchronized() && this->getUniqueID() > 0 && !this->isA( CL_MESSAGE_MANAGER ) )
    7373    NetworkGameManager::getInstance()->removeSynchronizeable( this->getUniqueID() );
    7474   
     
    226226            (*it)->checkPermission( PERMISSION_ALL )
    227227                    );
    228     if ( sizeIter != stateFrom->sizeList.end() || *sizeIter != (*it)->getSize() )
     228   
     229    if ( sizeIter != stateFrom->sizeList.end() || ( sizeIter != stateFrom->sizeList.end() && *sizeIter != (*it)->getSize() ) )
    229230      sizeChanged = true;
    230231   
Note: See TracChangeset for help on using the changeset viewer.