Skip to content

Commit

Permalink
Added a bit of readability to attempt_job_secondary_preference()
Browse files Browse the repository at this point in the history
  • Loading branch information
orson committed Aug 16, 2018
1 parent a8d72ef commit 495410a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/creature_jobs.c
Expand Up @@ -1233,8 +1233,10 @@ TbBool attempt_job_secondary_preference(struct Thing *creatng, long jobpref)
{
if (send_creature_to_job_for_player(creatng, creatng->owner, new_job))
{
if (!(creature_dislikes_job(creatng, new_job))){
return true; }
if (!creature_dislikes_job(creatng, new_job))
{
return true;
}
}
}
}
Expand Down

0 comments on commit 495410a

Please sign in to comment.