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/player.cc')
-rw-r--r--src/core/player.cc22
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;
/*