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>2008-07-29 12:08:47 +0000
committerStijn Buys <ingar@osirion.org>2008-07-29 12:08:47 +0000
commitf4398aa4664170b4da0b0224bdc27108eeca83f3 (patch)
tree6ea258d9a30c10ad9c54e931e6e0dba8c9f5c7e8 /src/game/game.cc
parent62e570842a4247aed635efba1768662913f55f6d (diff)
don't let buying a ship move the player to default_zone
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()));