Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/game.cc')
-rw-r--r--src/game/game.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/game.cc b/src/game/game.cc
index e5b13d2..b6c0366 100644
--- a/src/game/game.cc
+++ b/src/game/game.cc
@@ -99,7 +99,11 @@ void func_buy(core::Player *player, std::string const &args)
}
Ship * ship = new Ship(player, shipmodel);
- ship->set_zone(default_zone);
+ if (player->zone()) {
+ ship->set_zone(player->zone());
+ } else {
+ ship->set_zone(default_zone);
+ }
player->set_control(ship);
core::server()->broadcast("^B" + player->name() + " ^Bpurchased " + aux::article(shipmodel->name()));