Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 12:46:05 PM (19 years ago)
Author:
rennerc
Message:

last server is saved now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/story_entities/menu/game_menu.cc

    r9110 r9115  
    4040
    4141#include "network_manager.h"
     42
     43#include "preferences.h"
    4244
    4345//! This creates a Factory to fabricate a GameMenu
     
    528530     
    529531      this->ipInputLine = new OrxGui::GLGuiInputLine( );
    530       this->ipInputLine->setText( "tardis-d08" );
     532      this->ipInputLine->setText( Preferences::getInstance()->getString( "multiplayer", "lastVisitedServer", "localhost" ) );
    531533      this->clientNetworkBox->pack( this->ipInputLine );
    532534      this->ipInputLine->connect(SIGNAL(ipInputLine, enterPushed), this, SLOT(GameMenu, connectToServer));
     
    594596  NetworkManager::getInstance()->establishConnection( this->ipInputLine->_getText(), 9999 );
    595597 
     598  Preferences::getInstance()->setString( "multiplayer", "lastVisitedServer", this->ipInputLine->_getText() );
     599 
    596600  this->startLevel( 5 );
    597601}
Note: See TracChangeset for help on using the changeset viewer.