diff options
author | Patric Stout <truebrain@openttd.org> | 2021-01-11 20:10:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 20:10:53 +0100 |
commit | fe86bf8bf66775201924d01b14e3de821ab81902 (patch) | |
tree | b1558021d8422e65d893b18d8b8d612bcce7152b /src/error_gui.cpp | |
parent | eb23a6921bdb6f00ecd0f92b9feb3569d501ee85 (diff) | |
download | openttd-fe86bf8bf66775201924d01b14e3de821ab81902.tar.xz |
Fix #7619: nudge fast planes sooner towards their target (#8531)
For non-NewGRF planes, "count" is never above 1. So planes can
smoothly be guided to their destination. For NewGRF planes, they
can go as quick as "count" values of 20. This easily overshoots
the target. So, calculate if the plane will overshoot, and start
nudging him to the destination earlier. You won't notice this
either way, as it all happens within a single tick.
Diffstat (limited to 'src/error_gui.cpp')
0 files changed, 0 insertions, 0 deletions