diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-09 15:22:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-09 15:22:44 +0000 |
commit | 977a9a68d2465818a331643399a9ecc998d0cbb3 (patch) | |
tree | 5e19904a95119ebc22cfffedcf4bd7b2094e4e31 /src/core/player.cc | |
parent | d0b6e591fbaf3db5fc9898e75913e57a3c32169a (diff) |
Bumped network protocol to version 27,
send player reputation and stats from server to client,
send entity faction to clients,
improved list_entity.
Diffstat (limited to 'src/core/player.cc')
-rw-r--r-- | src/core/player.cc | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index f744766..bf71b77 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -266,13 +266,17 @@ void Player::serialize_server_update(std::ostream & os) const unsigned int mission_id = (player_mission_target ? player_mission_target->id() : 0); os << player_id << " " - << zone_id << " " - << view_id << " " - << control_id << " " - << mission_id << " " - << player_credits << " " - << player_level << " " - << player_ping; + << zone_id << " " + << view_id << " " + << control_id << " " + << mission_id << " " + << player_credits << " " + << player_level << " " + << player_npckills << " " + << player_pvpkills << " " + << player_time_wasted << " " + << player_time_joined << " " + << player_ping; } void Player::receive_server_update(std::istream &is) @@ -321,6 +325,10 @@ void Player::receive_server_update(std::istream &is) is >> player_credits; is >> player_level; + is >> player_npckills; + is >> player_pvpkills; + is >> player_time_wasted; + is >> player_time_joined; is >> player_ping; /* |