diff options
Diffstat (limited to 'src/core/player.cc')
-rw-r--r-- | src/core/player.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index b499003..c09cb6d 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -39,6 +39,8 @@ void Player::clear() clear_assets(); player_control = 0; + + player_ping = 0; } @@ -103,6 +105,11 @@ void Player::add_credits(long amount) player_credits += amount; } +void Player::set_ping(long ping) +{ + player_ping = ping; +} + void Player::update_info() { Cvar *cl_name = Cvar::find("cl_name"); |