Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9115 in orxonox.OLD for branches/presentation/src/lib/network


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

last server is saved now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/lib/network/player_stats.cc

    r9110 r9115  
    2222#include "state.h"
    2323#include "shared_network_data.h"
     24
     25#include "preferences.h"
    2426
    2527#include "debug.h"
     
    187189void PlayerStats::setNickName( std::string nick )
    188190{
    189   if ( isServer() )
     191  if ( SharedNetworkData::getInstance()->isGameServer() )
    190192  {
    191193    this->nickName = nick;
     
    226228  if ( getStats( SharedNetworkData::getInstance()->getHostID() ) )
    227229    getStats( SharedNetworkData::getInstance()->getHostID() )->setNickName( newNick );
     230   
     231  Preferences::getInstance()->setString( "multiplayer", "nickname", newNick );
    228232}
    229233
Note: See TracChangeset for help on using the changeset viewer.