Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9581 in orxonox.OLD


Ignore:
Timestamp:
Jul 28, 2006, 8:51:34 PM (18 years ago)
Author:
patrick
Message:

traced bug to the permissions system of the MASTER_SERVER permission level. try this

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

Legend:

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

    r9574 r9581  
    1616enum
    1717{
    18   TEAM_NOTEAM = -3,
    19   TEAM_RANDOM = -2,
    20   TEAM_SPECTATOR = -1
     18  TEAM_NOTEAM       = -3,
     19  TEAM_RANDOM       = -2,
     20  TEAM_SPECTATOR    = -1
    2121};
     22
    2223
    2324struct PlayerScore
     
    2627  int score;
    2728};
     29
     30
    2831typedef std::list<PlayerScore> TeamScoreList;
    2932typedef std::map<int,TeamScoreList> ScoreList;
     33
    3034
    3135//! A class for storing player information
  • branches/proxy/src/lib/network/synchronizeable.cc

    r9579 r9581  
    227227      hasPermission = true;
    228228    // SPECIAL: get write permissions if i am proxy server and i am able to overwrite the client stuff
     229    else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
     230             && (*it)->checkPermission( PERMISSION_MASTER_SERVER) )
     231      hasPermission = true;
    229232    else if( SharedNetworkData::getInstance()->isProxyServerActive() && this->networkStream->isUserClient(userId)
    230233             && this->owner != userId && (*it)->checkPermission( PERMISSION_OWNER ) )
Note: See TracChangeset for help on using the changeset viewer.