From f4398aa4664170b4da0b0224bdc27108eeca83f3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 29 Jul 2008 12:08:47 +0000 Subject: don't let buying a ship move the player to default_zone --- src/game/game.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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())); -- cgit v1.2.3