Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-04 17:18:18 +0000
committerStijn Buys <ingar@osirion.org>2014-12-04 17:18:18 +0000
commit666638571080a4ce076810fbd263db229d69c995 (patch)
treec609f774902fbca067f6a55b3d67bef61b1eca32 /src/game/base
parent50302a954c21d93512fdbfccc23a792e896920e0 (diff)
Corrected an error which prevented wingmen to be nudged correctly while spawning.
Diffstat (limited to 'src/game/base')
-rw-r--r--src/game/base/npc.cc3
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