sumo
sumo copied to clipboard
Fixes regression in #12990
The implementation of red transfer in #12990 led to edge cases where illegal barrier cross could occur. The problem was incorrect transition time calculation for lights in red transfer state.
I simplified the red transfer logic and corrected the error in transition time calculation for phases in red transfer (0)
PR also includes refactoring & ran astyle.
Sorry for not looking at this one earlier. There was a lot of empty line removal which is something astyle does not (at least on our side) Could you please revert this if possible?
I removed whitespace / newline changes to the best of my ability
Thanks for the reminder ;-)