Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2008, 11:09:55 PM (16 years ago)
Author:
rgrieder
Message:

Merged revision 2371 to bugger branch.

Location:
code/branches/bugger
Files:
1 edited
10 copied

Legend:

Unmodified
Added
Removed
  • code/branches/bugger

  • code/branches/bugger/src/network/synchronisable/Synchronisable.cc

    r2371 r2531  
    7979
    8080
    81 #ifndef NDEBUG
    82     ObjectList<Synchronisable>::iterator it;
    83     for(it = ObjectList<Synchronisable>::begin(); it!=ObjectList<Synchronisable>::end(); ++it){
    84       if( it->getObjectID()==this->objectID )
    85         assert(*it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0));
    86     }
    87 #endif
     81//#ifndef NDEBUG
     82//    ObjectList<Synchronisable>::iterator it;
     83//    for(it = ObjectList<Synchronisable>::begin(); it!=ObjectList<Synchronisable>::end(); ++it){
     84//        if(!(*it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0)))
     85//        {
     86//            COUT(1) << "Assertion failed: *it==this || (it->objectID==OBJECTID_UNKNOWN && it->objectMode_==0x0)" << std::endl;
     87//            COUT(1) << "Possible reason for this error: Client created a synchronized object without the Server's approval." << std::endl;
     88//            abort();
     89//        }
     90//    }
     91//#endif
    8892
    8993    this->creatorID = OBJECTID_UNKNOWN;
     
    159163
    160164    Identifier* id = ClassByID(header->classID);
     165    if (!id)
     166    {
     167        COUT(1) << "Assertion failed: id" << std::endl;
     168        COUT(1) << "Possible reason for this error: Client received a synchronizable object whose class has no factory." << std::endl;
     169        abort();
     170    }
    161171    assert(id);
    162172    BaseObject* creator = 0;
  • code/branches/bugger/src/network/synchronisable/Synchronisable.h

    r2371 r2531  
    9090    static uint32_t popDeletedObject(){ uint32_t i = deletedObjects_.front(); deletedObjects_.pop(); return i; }
    9191
    92     inline uint32_t getObjectID(){return objectID;}
    93     inline unsigned int getCreatorID(){return creatorID;}
    94     inline uint32_t getClassID(){return classID;}
    95     inline unsigned int getPriority(){ return objectFrequency_;}
     92    inline uint32_t getObjectID() const {return objectID;}
     93    inline unsigned int getCreatorID() const {return creatorID;}
     94    inline uint32_t getClassID() const {return classID;}
     95    inline unsigned int getPriority() const { return objectFrequency_;}
    9696
    9797  protected:
Note: See TracChangeset for help on using the changeset viewer.