diff options
author | Stijn Buys <ingar@osirion.org> | 2008-12-25 12:13:56 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-12-25 12:13:56 +0000 |
commit | bfa10f9990a8a045b03474d11af75984c12a856a (patch) | |
tree | 87ff30329be78b8012d545b097b669b746ab0fc0 /src/core/player.cc | |
parent | 164e3c5b1cd9e6d6f7ca26964df4c54394eb1c84 (diff) |
Improved list_zone, list_ships
Ship price and cargo size
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"); |