diff options
Diffstat (limited to 'src/game/base/station.cc')
-rw-r--r-- | src/game/base/station.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/game/base/station.cc b/src/game/base/station.cc index f5dc50a..0d992bd 100644 --- a/src/game/base/station.cc +++ b/src/game/base/station.cc @@ -22,26 +22,4 @@ Station::~Station() { } -void Station::dock(core::Entity *entity) -{ - if (entity->moduletype() != ship_enttype) - return; - - Ship * ship = static_cast<Ship *>(entity); - - if (math::distance(location(), ship->location()) > radius() + ship->radius()) { - if (ship->owner()) - ship->owner()->send("Target out of range"); - return; - } - - ship->get_location().assign(location()); - ship->set_state(core::Entity::Docked); - - if (ship->owner() && ship->owner()->control() == ship) { - ship->owner()->set_view(this); - ship->owner()->send("^BDocking at " + name()); - } -} - } |