Skip to content

Commit

Permalink
fix NPC forgetting the yare your followers
Browse files Browse the repository at this point in the history
  • Loading branch information
David Brown committed Dec 23, 2019
1 parent b9b3dc2 commit 0cb8fd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/npctalk_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void talk_function::assign_camp( npc &p )

void talk_function::stop_guard( npc &p )
{
if( p.mission != NPC_MISSION_GUARD_ALLY && p.mission != NPC_MISSION_ASSIGNED_CAMP ) {
if( !p.is_player_ally() ) {
p.set_attitude( NPCATT_NULL );
p.set_mission( NPC_MISSION_NULL );
return;
Expand Down Expand Up @@ -766,6 +766,7 @@ void talk_function::leave( npc &p )
if( new_solo_fac ) {
new_solo_fac->known_by_u = true;
}
p.chatbin.first_topic = "TALK_STRANGER_NEUTRAL";
p.set_attitude( NPCATT_NULL );
}

Expand Down

0 comments on commit 0cb8fd7

Please sign in to comment.