Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 18, 2006, 10:06:19 PM (18 years ago)
Author:
bensch
Message:

new_class_id: hups… this was bad naming… confusing too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/network/network_stream.cc

    r9716 r9757  
    967967
    968968      // if handshake not finished only sync handshake
    969       if ( peer->second.handshake && Handshake::classID() != sync.getLeafClassID())
     969      if ( peer->second.handshake && Handshake::staticClassID() != sync.getLeafClassID())
    970970        continue;
    971971
     
    973973      if ( ( SharedNetworkData::getInstance()->isMasterServer() ||
    974974             SharedNetworkData::getInstance()->isProxyServerActive() &&  peer->second.isClient())
    975              && Handshake::classID() == sync.getLeafClassID() && sync.getUniqueID() != peer->second.userId )
     975             && Handshake::staticClassID() == sync.getLeafClassID() && sync.getUniqueID() != peer->second.userId )
    976976        continue;
    977977
    978978      /* list of synchronizeables that will never be synchronized over the network: */
    979979      // do not sync null parent
    980       if ( NullParent::classID() == sync.getLeafClassID())
     980      if ( NullParent::staticClassID() == sync.getLeafClassID())
    981981        continue;
    982982
     
    11871187          /* These are some small exeptions in creation: Not all objects can/should be created via Factory */
    11881188          /* Exception 1: NullParent */
    1189           if( NullParent::classID() == leafClassId || Synchronizeable::classID() == leafClassId || NetworkGameManager::classID() == leafClassId)
     1189          if( NullParent::staticClassID() == leafClassId || Synchronizeable::staticClassID() == leafClassId || NetworkGameManager::staticClassID() == leafClassId)
    11901190          {
    11911191            PRINTF(1)("Don't create Object with ID %x, ignored!\n", (int)leafClassId);
     
    12031203          }
    12041204
    1205           if ( b->isA(Synchronizeable::classID()) )
     1205          if ( b->isA(Synchronizeable::staticClassID()) )
    12061206          {
    12071207            sync = dynamic_cast<Synchronizeable*>(b);
Note: See TracChangeset for help on using the changeset viewer.