diff options
Diffstat (limited to 'src/core/player.cc')
-rw-r--r-- | src/core/player.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/player.cc b/src/core/player.cc index f968fc3..b499003 100644 --- a/src/core/player.cc +++ b/src/core/player.cc @@ -93,6 +93,16 @@ void Player::set_mission_target(Entity *new_mission_target) } } +void Player::set_credits(long amount) +{ + player_credits = amount; +} + +void Player::add_credits(long amount) +{ + player_credits += amount; +} + void Player::update_info() { Cvar *cl_name = Cvar::find("cl_name"); |