Changeset 9115 in orxonox.OLD for branches/presentation/src/lib/network
- Timestamp:
- Jul 4, 2006, 12:46:05 PM (18 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.