Skip to content

Commit

Permalink
Fix #174 that caused citizens to unexpectedly leave their homes at night
Browse files Browse the repository at this point in the history
  • Loading branch information
dymanoid committed Sep 6, 2018
1 parent 5530257 commit a225365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RealTime/CustomAI/RealTimeBuildingAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ private void UpdateLightState(ushort step, bool updateBuilding)
if (updateBuilding)
{
buildingManager.UpdateBuildingColors(i);
if (!lightsOn)
if (!lightsOn && service != ItemClass.Service.Residential)
{
buildingManager.DeactivateVisually(i);
}
Expand Down

0 comments on commit a225365

Please sign in to comment.