diff options
| author | Stijn Buys <ingar@osirion.org> | 2010-02-21 12:36:17 +0000 | 
|---|---|---|
| committer | Stijn Buys <ingar@osirion.org> | 2010-02-21 12:36:17 +0000 | 
| commit | 730c452ff5896ed66114e6b2153add9379edef5c (patch) | |
| tree | 353c7c0449deb41f3396d776c0437a4141383d01 /src/core/netconnection.cc | |
| parent | 745b4e04e5f23a02e5d9b12ebabf38d6dd034136 (diff) | |
network info messages bugfixes
Diffstat (limited to 'src/core/netconnection.cc')
| -rw-r--r-- | src/core/netconnection.cc | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 0a816b8..fa959be 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -426,7 +426,7 @@ void NetConnection::send_info_request(Info *info)  {  	std::ostringstream msg;  	if (info->id()) { -		msg << "inf " << info->id() << " \"\" \"\"\n"; +		msg << "inf " << info->id() << "\n";  	} else {  		if (!info->type())  			return; @@ -434,7 +434,7 @@ void NetConnection::send_info_request(Info *info)  	}  	this->send_raw(msg.str()); -	info->set_timestamp(application()->timestamp()); +	info->set_timestamp(timestamp());  }  // parse incoming client messages @@ -752,7 +752,7 @@ void NetConnection::parse_incoming_message(const std::string & message)  		}  	} else if (command.compare("pid") == 0) { -		con_debug << "Received player disconnect info" << std::endl; +		//con_debug << "Received player disconnect info" << std::endl;  		int player_id;  		if (!(msgstream >> player_id)) { @@ -837,6 +837,8 @@ void NetConnection::parse_incoming_message(const std::string & message)  		info->receive_server_update(msgstream);  		info->clear_timestamp(); +		 +		//con_debug << "Received info for " << info->id() << " " << info->type()->label() << ":" << info->label() << std::endl;  	}  } | 
