Changeset 9115 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jul 4, 2006, 12:46:05 PM (18 years ago)
- Location:
- branches/presentation/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/lib/network/player_stats.cc
r9110 r9115 22 22 #include "state.h" 23 23 #include "shared_network_data.h" 24 25 #include "preferences.h" 24 26 25 27 #include "debug.h" … … 187 189 void PlayerStats::setNickName( std::string nick ) 188 190 { 189 if ( isServer() )191 if ( SharedNetworkData::getInstance()->isGameServer() ) 190 192 { 191 193 this->nickName = nick; … … 226 228 if ( getStats( SharedNetworkData::getInstance()->getHostID() ) ) 227 229 getStats( SharedNetworkData::getInstance()->getHostID() )->setNickName( newNick ); 230 231 Preferences::getInstance()->setString( "multiplayer", "nickname", newNick ); 228 232 } 229 233 -
branches/presentation/src/orxonox.cc
r8750 r9115 145 145 SDL_QuitSubSystem(SDL_INIT_TIMER); 146 146 ClassList::debug(); 147 148 Preferences::getInstance()->save(); 147 149 148 150 PRINT(3) -
branches/presentation/src/story_entities/menu/game_menu.cc
r9110 r9115 40 40 41 41 #include "network_manager.h" 42 43 #include "preferences.h" 42 44 43 45 //! This creates a Factory to fabricate a GameMenu … … 528 530 529 531 this->ipInputLine = new OrxGui::GLGuiInputLine( ); 530 this->ipInputLine->setText( "tardis-d08");532 this->ipInputLine->setText( Preferences::getInstance()->getString( "multiplayer", "lastVisitedServer", "localhost" ) ); 531 533 this->clientNetworkBox->pack( this->ipInputLine ); 532 534 this->ipInputLine->connect(SIGNAL(ipInputLine, enterPushed), this, SLOT(GameMenu, connectToServer)); … … 594 596 NetworkManager::getInstance()->establishConnection( this->ipInputLine->_getText(), 9999 ); 595 597 598 Preferences::getInstance()->setString( "multiplayer", "lastVisitedServer", this->ipInputLine->_getText() ); 599 596 600 this->startLevel( 5 ); 597 601 }
Note: See TracChangeset
for help on using the changeset viewer.