Skip to content

Commit

Permalink
Merge pull request #36391 from davidpwbrown/npc_not_followers
Browse files Browse the repository at this point in the history
fix NPC forgetting they are your followers
  • Loading branch information
ZhilkinSerg authored Dec 24, 2019
2 parents 1d87bc5 + 0cb8fd7 commit c956a9e
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 c956a9e

Please sign in to comment.