Skip to content

Commit c004add

Browse files
committed
readme, small improvement
1 parent 2a17118 commit c004add

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ User manual: http://www.viathinksoft.de/tmpe
1111
- Bugfix: Pedestrian traffic lights were not working as expected
1212
- Bugfix: When upgrading/removing/adding a road segment, nearby junction restrictions were removed
1313
- Bugfix: Setting up vehicle restrictions affects trams (thanks to @chem for reporting)
14-
- Bugfix: Manual pedestrian traffic light state were not correctly handled
14+
- Bugfix: Manual pedestrian traffic light states were not correctly handled
1515
- Bugfix: Junction restrictions overlay did not show all restricted junctions
1616

1717
1.7.9, 08/22/2016

TLM/TLM/Custom/AI/CustomRoadAI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public void CustomSegmentSimulationStep(ushort segmentID, ref NetSegment data) {
212212
#if ABSDENSITY
213213

214214
if (maxLaneDensity > 0)
215-
laneMeanAbsDensities[segmentID][laneIndex] = (byte)((Math.Min(currentDensity * 100 / maxLaneDensity, 100) * (uint)Options.someValue9 + laneMeanAbsDensities[segmentID][laneIndex]) / ((uint)Options.someValue9 + 1));
215+
laneMeanAbsDensities[segmentID][laneIndex] = (byte)((Math.Min(currentDensity * 100 / maxLaneDensity, 100) + laneMeanAbsDensities[segmentID][laneIndex] * (uint)Options.someValue9) / ((uint)Options.someValue9 + 1));
216216
else
217217
laneMeanAbsDensities[segmentID][laneIndex] /= (byte)Options.someValue8;
218218
#endif

0 commit comments

Comments
 (0)