Skip to content

Commit

Permalink
Fix issue causing teens and children to unexpectedly return to school
Browse files Browse the repository at this point in the history
  • Loading branch information
dymanoid committed Jun 30, 2018
1 parent d458459 commit e816b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RealTime/CustomAI/RealTimeResidentAI.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ private ResidentState GetResidentState(ref TCitizen citizen)
{
case ItemClass.Service.Commercial:
if (CitizenProxy.GetWorkBuilding(ref citizen) != 0 && IsWorkDay
&& TimeInfo.CurrentHour > Config.LunchBegin && TimeInfo.CurrentHour < Config.WorkEnd)
&& TimeInfo.CurrentHour > Config.LunchBegin && TimeInfo.CurrentHour < GetSpareTimeBeginHour(CitizenProxy.GetAge(ref citizen)))
{
return ResidentState.AtLunch;
}
Expand Down

0 comments on commit e816b18

Please sign in to comment.