Skip to content

Commit 554f754

Browse files
committed
Automatic merge of T1.5.1-376-g885592329 and 12 pull requests
- Pull request #570 at de7a14f: Experimental glTF 2.0 support with PBR lighting - Pull request #732 at 2451991: Improvements for air brakes - Pull request #751 at 00981a2: Web interface to control cab controls with external hardware - Pull request #799 at dc03850: Consolidated wind simulation - Pull request #802 at 4d198e4: Added support for activity location events to the TrackViewer - Pull request #803 at 7157e08: Various adjustments to steam adhesion - Pull request #813 at ff454eb: Refactored garbage generators - Pull request #815 at a5cc165: chore: Add GitHub automatic release notes configuration - Pull request #818 at 73b637f: Allow independent drive axles for locomotives - Pull request #820 at 6e7a5b6: delay option for masterkey does not delay switch off - Pull request #821 at e0fa5a8: Adds suppression of safety valves - Pull request #822 at 82ef736: battery switch two buttons option in combination with a delay
14 parents faaa5e5 + 8855923 + de7a14f + 2451991 + 00981a2 + dc03850 + 4d198e4 + 7157e08 + ff454eb + a5cc165 + 73b637f + 6e7a5b6 + e0fa5a8 + 82ef736 commit 554f754

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Source/ORTS.Common/Filter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,11 @@ public float Filter(float NewSample, float samplingPeriod)
317317
/// </summary>
318318
public void Reset()
319319
{
320-
Array.Clear(x);
321-
Array.Clear(y);
320+
for (int i = 0; i < x.Length; i++)
321+
{
322+
x[i] = 0.0f;
323+
y[i] = 0.0f;
324+
}
322325
}
323326
/// <summary>
324327
/// Resets all buffers of the filter with given initial value

0 commit comments

Comments
 (0)