diff options
author | Stijn Buys <ingar@osirion.org> | 2013-10-16 21:41:55 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-10-16 21:41:55 +0000 |
commit | fd3725940b7a768706d97542f15eb1a88c41e37d (patch) | |
tree | a22f62a1e08a5af7d1bcc83edd88abb388f230de /src/game/base | |
parent | 2bfb32c5f3cbc180835f537c81ae3713466d9fa7 (diff) |
Always send an autopilot formation notification.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 789f2d5..438154d 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -331,10 +331,8 @@ void Game::func_target_formation(core::Player *player, core::Entity *entity) ship->unset_autopilot_flag(Ship::AutoPilotDock); ship->set_autopilot_flag(Ship::AutoPilotFormation); - if (math::distance(player->control()->location(), entity->location()) > (player->control()->radius() + entity->radius() + PLANET_SAFE_DISTANCE)) { - // TODO replace with "formation" voice - player->send("Autopilot set to formation with " + entity->name()); - } + // TODO replace with "formation" voice + player->send("Autopilot set to formation with " + entity->name()); } // a player sends a standard hail |