Skip to content

Commit

Permalink
Fix #66 part 2: wrong probability
Browse files Browse the repository at this point in the history
  • Loading branch information
dymanoid committed Jul 15, 2018
1 parent ef88107 commit bd6b099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RealTime/CustomAI/RealTimeHumanAIBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ protected bool IsCitizenVirtual<TAI>(TAI humanAI, ref TCitizen citizen, Func<TAI

return CitizenMgr.GetInstancesCount() * 100 / CitizenInstancesMaxCount < virtualChance
? !realizeCitizen(humanAI)
: !Random.ShouldOccur(virtualChance);
: Random.ShouldOccur(virtualChance);
}

/// <summary>Determines whether the weather is currently so bad that the citizen would like to stay inside a building.</summary>
Expand Down

0 comments on commit bd6b099

Please sign in to comment.