diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-29 12:08:47 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-29 12:08:47 +0000 |
commit | f4398aa4664170b4da0b0224bdc27108eeca83f3 (patch) | |
tree | 6ea258d9a30c10ad9c54e931e6e0dba8c9f5c7e8 /src/game | |
parent | 62e570842a4247aed635efba1768662913f55f6d (diff) |
don't let buying a ship move the player to default_zone
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/game.cc | 6 |
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())); |