From ad8f2fe096b2bca7294f07635675f30b94b2977a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 12 Nov 2013 20:47:30 +0000 Subject: Clear reputation dirty state on player join. --- src/core/netserver.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/netserver.cc b/src/core/netserver.cc index 17fef86..cbb2dc7 100644 --- a/src/core/netserver.cc +++ b/src/core/netserver.cc @@ -294,6 +294,7 @@ NetClient * NetServer::client_connect(std::string const host, int const port) clients.push_back(client); client->player()->set_dirty(false); + client->player()->reputation().set_dirty(false); return client; } @@ -900,7 +901,7 @@ void NetServer::parse_incoming_message(NetClient *client, const std::string & me Info *info = 0; if (id) { - info = Info::find(id); + info = Info::find(id); if (info) { //con_debug << "Sending info for " << info->id() << " " << info->type()->label() << ":" << info->label() << std::endl; send_info_update(client, info); -- cgit v1.2.3