Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2008, 3:14:07 PM (16 years ago)
Author:
rgrieder
Message:

Bugfix in network: When checking for other objectIDs, it was possible that within the constructor of one Synchronisable, another one was created. In the check then, both have objectID == OBJECTID_UNKNOWN because the objectID of the first object was not yet set (done after construction).

  • Moved the check to Gamestate, after ALL objects of one packet have been created.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/network/synchronisable/Synchronisable.cc

    r2459 r2464  
    8080    this->setPriority( priority::normal );
    8181
    82    
    8382    // get creator id
    84 #ifndef NDEBUG
    85     ObjectList<Synchronisable>::iterator it;
    86     for(it = ObjectList<Synchronisable>::begin(); it!=ObjectList<Synchronisable>::end(); ++it){
    87       if( it->getObjectID()==this->objectID )
    88         assert(*it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0));
    89     }
    90 #endif
    91 
    9283    this->creatorID = OBJECTID_UNKNOWN;
    9384
Note: See TracChangeset for help on using the changeset viewer.