Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9416 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 24, 2006, 1:00:01 PM (18 years ago)
Author:
patrick
Message:

now servers are not able to play anymore

Location:
branches/proxy/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/proxy/network_settings.cc

    r9410 r9416  
    4040  // suggest a good standard max players value
    4141  this->maxPlayer = 10;
    42 
    43 //   this->loadData();
    4442}
    4543
  • branches/proxy/src/util/multiplayer_team_deathmatch.cc

    r9406 r9416  
    152152      box->setAbsCoor2D( 300, 100 );
    153153
    154       OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator");
    155       box->pack( buttonSpectator );
    156       buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator);
    157 
    158       OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random");
    159       box->pack( buttonRandom );
    160       buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom);
    161 
    162       OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team");
    163       box->pack( buttonTeam0 );
    164       buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0);
    165 
    166       OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team");
    167       box->pack( buttonTeam1 );
    168       buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1);
     154      if( SharedNetworkData::getInstance()->isClient())
     155      {
     156        OrxGui::GLGuiPushButton * buttonSpectator = new OrxGui::GLGuiPushButton("Spectator");
     157        box->pack( buttonSpectator );
     158        buttonSpectator->released.connect(this, &MultiplayerTeamDeathmatch::onButtonSpectator);
     159
     160        OrxGui::GLGuiPushButton * buttonRandom = new OrxGui::GLGuiPushButton("Random");
     161        box->pack( buttonRandom );
     162        buttonRandom->released.connect(this, &MultiplayerTeamDeathmatch::onButtonRandom);
     163
     164        OrxGui::GLGuiPushButton * buttonTeam0 = new OrxGui::GLGuiPushButton("Blue Team");
     165        box->pack( buttonTeam0 );
     166        buttonTeam0->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam0);
     167
     168        OrxGui::GLGuiPushButton * buttonTeam1 = new OrxGui::GLGuiPushButton("Red Team");
     169        box->pack( buttonTeam1 );
     170        buttonTeam1->released.connect(this, &MultiplayerTeamDeathmatch::onButtonTeam1);
     171      }
     172      else
     173      {
     174        OrxGui::GLGuiText* text = new OrxGui::GLGuiText();
     175        text->setText("Server Mode: not able to play at this node");
     176        box->pack( text);
     177      }
     178
    169179
    170180      if ( bShowTeamChange )
Note: See TracChangeset for help on using the changeset viewer.