let path_corners reset to their classes speed before using the train speed, and reset to the default trainspeed as last fallback instead of using its own fallback
add missing returns after NORETURN function (in case its behavior ever changes, which also silences some warnings)