diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-04 17:18:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-04 17:18:18 +0000 |
commit | 666638571080a4ce076810fbd263db229d69c995 (patch) | |
tree | c609f774902fbca067f6a55b3d67bef61b1eca32 /src | |
parent | 50302a954c21d93512fdbfccc23a792e896920e0 (diff) |
Corrected an error which prevented wingmen to be nudged correctly while spawning.
Diffstat (limited to 'src')
-rw-r--r-- | src/game/base/npc.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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 |