Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 30, 2006, 1:47:41 PM (18 years ago)
Author:
rennerc
Message:

fixed bug in client-client synchronisation

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

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/player_stats.h

    r7974 r7979  
    4040    void setPlayableUniqueId( int uniqueId );
    4141   
     42    inline std::string getModelFileName(){ return modelFileName; }
     43    inline void setModelFileName( std::string filename ){ modelFileName = filename; }
     44   
    4245    Playable * getPlayable();
    4346
  • branches/network/src/lib/network/synchronizeable.cc

    r7954 r7979  
    175175            this->isServer() && (*it)->checkPermission( PERMISSION_SERVER ) ||
    176176            this->owner == this->hostID && (*it)->checkPermission( PERMISSION_OWNER ) ||
     177            this->isServer() && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ) ||
    177178            (*it)->checkPermission( PERMISSION_ALL )
    178179                    );
     
    289290        (*it)->checkPermission( PERMISSION_SERVER ) && networkStream->isUserServer( userId ) ||
    290291        (*it)->checkPermission( PERMISSION_OWNER ) && this->owner == userId ||
     292        networkStream->isUserServer( userId ) && this->owner != getHostID() && (*it)->checkPermission( PERMISSION_OWNER ) ||
    291293        (*it)->checkPermission( PERMISSION_ALL )
    292294       )
Note: See TracChangeset for help on using the changeset viewer.