diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-12 20:47:30 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-12 20:47:30 +0000 |
commit | ad8f2fe096b2bca7294f07635675f30b94b2977a (patch) | |
tree | 76f244c17d92b134a15fc07dbfe68f1b57958947 /src | |
parent | 82ed134370a815969c0718788ea5b664c08c693a (diff) |
Clear reputation dirty state on player join.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/netserver.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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); |