Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
Fix #74907, i.e. towing a vehicle rearwards causes it to instantly accelerate to a very high velocity, smash into the towing vehicle, and shoot off into the distance.
Describe the solution
Remove a weird line that destroys the logic by replacing a value that's expected to be either 1 or -1 with 10. I have no idea what this line is supposed to achieve (or how it was tested...), but the operation called immediately after setting the value makes the assumption the value is either 1 or -1 to indicate it breaking or accelerating (0 might be steady: I didn't look for that case), so instead of accelerating as the code leading up to this had concluded, 10 resulted in it not being 1, and so had to be breaking. This, in turn seems to have resulted in code for breaking being called with acceleration values, which, in turn, gave bizarre results when feeding into what what supposed to be a limiting operation (min of two negative values does NOT result in the one closest to zero...).
Describe alternatives you've considered
Try to figure out why this "random" line was entered. However, I don't know how to search for where and when code was changed.
Testing
Based on @RenechCDDA's archeology dig, I tested the bug report save to see what happened if I attached the cable to the side of the pulled vehicle (I tried both of the two middle tiles at one side):
Additional context