Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-11 12:15:22 +0000
committerStijn Buys <ingar@osirion.org>2009-01-11 12:15:22 +0000
commit20e8e4c0fb1262a25c2491679da4587d264208a2 (patch)
treec836dc74bfb82088c70bdd636dfb1f236043f58d /src/game/base
parent7082a5a1b7258580c698a09cf9fb8bec0bc97472 (diff)
core::Player interface updates
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/game.cc3
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