diff options
Diffstat (limited to 'src/game/base/patrol.cc')
-rw-r--r-- | src/game/base/patrol.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/base/patrol.cc b/src/game/base/patrol.cc index f3cfa07..fbe02df 100644 --- a/src/game/base/patrol.cc +++ b/src/game/base/patrol.cc @@ -62,7 +62,7 @@ Patrol::Patrol() : core::Entity() patrol_faction = 0; - patrol_profile = NPC::ProfilePatrol; + patrol_profile = ProfilePatrol; patrol_waypoint_current == patrol_waypoints.end(); @@ -98,7 +98,7 @@ Patrol::~Patrol() patrol_members.clear(); } -void Patrol::set_profile(const NPC::Profile profile) +void Patrol::set_profile(const Profile profile) { patrol_profile = profile; } @@ -302,7 +302,8 @@ void Patrol::frame(const unsigned long elapsed) for (size_t i = 0; i < nbships; i++) { // add NPC - NPC *npc = new NPC(patrol_profile, npctype->shipmodel()); + NPC *npc = new NPC(npctype->shipmodel()); + npc->set_mood(NPC::MoodFormation); // set NPC name if (npctype->name().size()) { |