diff options
author | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:35:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:35:45 +0000 |
commit | 44500292f5a964036e9d915a38a2773bf5aa765d (patch) | |
tree | 04e791247062a78b753017afad6d96e32a367900 /src/core/player.cc | |
parent | b8668c7a181ff082e5aeabffeaa413677da3e6f9 (diff) |
preliminary player ping support
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"); |