From b277c65615482f17c966771341ae6b7a89cc9568 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 20 Oct 2013 14:36:45 +0000 Subject: Make wingmen follow you through jumpgates. --- src/game/base/ship.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/base/ship.h') diff --git a/src/game/base/ship.h b/src/game/base/ship.h index 61ff1c7..fa6e60d 100644 --- a/src/game/base/ship.h +++ b/src/game/base/ship.h @@ -83,6 +83,11 @@ public: return ship_spawn; } + inline JumpPoint *jumpdepart() + { + return ship_jumpdepart; + } + /// current autopilot target inline core::Entity *autopilot_target() { @@ -230,7 +235,7 @@ protected: * @brief autopilot formation flying * */ void frame_autopilot_formation(const unsigned long elapsed, core::Entity *target); - + private: JumpPoint *find_closest_jumppoint(); -- cgit v1.2.3