diff --git a/TLM/TLM/Manager/Impl/AdvancedParkingManager.cs b/TLM/TLM/Manager/Impl/AdvancedParkingManager.cs index cb841e08b..4387fe7ad 100644 --- a/TLM/TLM/Manager/Impl/AdvancedParkingManager.cs +++ b/TLM/TLM/Manager/Impl/AdvancedParkingManager.cs @@ -2971,7 +2971,7 @@ InfoProperties.ModeProperties[] modeProperties color = Color.Lerp( modeProperties[(int)infoMode].m_targetColor, modeProperties[(int)infoMode].m_negativeColor, - Mathf.Clamp01(extBuilding.parkingSpaceDemand * 0.01f)); + extBuilding.parkingSpaceDemand * 0.01f); return true; } @@ -2981,11 +2981,10 @@ InfoProperties.ModeProperties[] modeProperties color = Color.Lerp( modeProperties[(int)InfoManager.InfoMode.Traffic].m_targetColor, modeProperties[(int)InfoManager.InfoMode.Traffic].m_negativeColor, - Mathf.Clamp01( (TrafficManagerTool.CurrentTransportDemandViewMode == TransportDemandViewMode.Outgoing ? extBuilding.outgoingPublicTransportDemand - : extBuilding.incomingPublicTransportDemand) * 0.01f)); + : extBuilding.incomingPublicTransportDemand) * 0.01f); return true; } diff --git a/TLM/TLM/Manager/Impl/ExtBuildingManager.cs b/TLM/TLM/Manager/Impl/ExtBuildingManager.cs index 1cb3675ea..08faa3f1c 100644 --- a/TLM/TLM/Manager/Impl/ExtBuildingManager.cs +++ b/TLM/TLM/Manager/Impl/ExtBuildingManager.cs @@ -67,16 +67,12 @@ public void AddParkingSpaceDemand(ref ExtBuilding extBuilding, uint delta) { extBuilding.parkingSpaceDemand = (byte)Math.Min( 100, (int)extBuilding.parkingSpaceDemand + delta); - - RequestColorUpdate(extBuilding.buildingId); } public void RemoveParkingSpaceDemand(ref ExtBuilding extBuilding, uint delta) { extBuilding.parkingSpaceDemand = (byte)Math.Max( 0, (int)extBuilding.parkingSpaceDemand - delta); - - RequestColorUpdate(extBuilding.buildingId); } public void ModifyParkingSpaceDemand(ref ExtBuilding extBuilding, @@ -98,8 +94,6 @@ public void ModifyParkingSpaceDemand(ref ExtBuilding extBuilding, extBuilding.parkingSpaceDemand + (int)Mathf.Round(delta), 0, 100); - - RequestColorUpdate(extBuilding.buildingId); } public void @@ -114,8 +108,6 @@ public void } else { extBuilding.incomingPublicTransportDemand = newDemand; } - - RequestColorUpdate(extBuilding.buildingId); } public void RemovePublicTransportDemand(ref ExtBuilding extBuilding, @@ -131,12 +123,6 @@ public void RemovePublicTransportDemand(ref ExtBuilding extBuilding, } else { extBuilding.incomingPublicTransportDemand = newDemand; } - - RequestColorUpdate(extBuilding.buildingId); - } - - private void RequestColorUpdate(ushort buildingId) { - Singleton.instance.UpdateBuildingColors(buildingId); } protected override void InternalPrintDebugInfo() {