From 666638571080a4ce076810fbd263db229d69c995 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 4 Dec 2014 17:18:18 +0000 Subject: Corrected an error which prevented wingmen to be nudged correctly while spawning. --- src/game/base/npc.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game') diff --git a/src/game/base/npc.cc b/src/game/base/npc.cc index 3bd5ca0..9aff6b2 100644 --- a/src/game/base/npc.cc +++ b/src/game/base/npc.cc @@ -36,10 +36,9 @@ NPC *NPC::add_wingman(Ship *leader) npc->set_color_second(npc->leader()->color_second()); npc->set_location(leader->location() - leader->axis().forward() * 2.0f * (leader->radius() + npc->radius())); - npc->nudge(); - npc->set_axis(leader->axis()); npc->set_zone(leader->zone()); + npc->nudge(true); // copy weapon layout -- cgit v1.2.3