diff options
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 756985c..07cec0c 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -74,6 +74,7 @@ void Game::func_join(core::Player *player, std::string const &args) if (player->control()) return; + player->set_credits(Default::credits); Ship *ship = new Ship(player, Default::shipmodel); ship->set_zone(player->zone()); player->set_control(ship); @@ -94,7 +95,7 @@ void Game::func_join(core::Player *player, std::string const &args) player->send("^BYou received " + aux::article(Default::shipmodel->name())); player->sound("game/buy-ship"); - player->player_dirty = true; + player->set_dirty(); } // a player joins the spectators |