- Timestamp:
- May 7, 2015, 5:21:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/multiplayerFS15/src/libraries/network/LANDiscovery.cc
r10334 r10434 89 89 { 90 90 packet::ServerInformation info(&event); 91 orxout(internal_info, context::network) << "Received LAN discovery server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", RTT: " << info.getServerRTT() << endl;91 orxout(internal_info, context::network) << "Received LAN discovery server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", Players: " << info.getClientNumber() << ", RTT: " << info.getServerRTT() << endl; 92 92 std::vector<packet::ServerInformation>::iterator it; 93 93 for( it=this->servers_.begin(); it!=this->servers_.end(); ++it ) … … 132 132 return Ogre::StringConverter::toString(serverrtt); 133 133 } 134 135 134 } 136 135 137 136 std::string LANDiscovery::getServerListItemPlayerNumber(unsigned int index) 137 { 138 if( index >= this->servers_.size() ) 139 return BLANKSTRING; 140 else{ 141 int playerNumber = this->servers_[index].getClientNumber(); 142 return Ogre::StringConverter::toString(playerNumber); 143 } 144 } 138 145 } // namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.