Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc8
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;
}
}