summaryrefslogtreecommitdiff
path: root/src/autoslope.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-11 20:10:53 +0100
committerGitHub <noreply@github.com>2021-01-11 20:10:53 +0100
commitfe86bf8bf66775201924d01b14e3de821ab81902 (patch)
treeb1558021d8422e65d893b18d8b8d612bcce7152b /src/autoslope.h
parenteb23a6921bdb6f00ecd0f92b9feb3569d501ee85 (diff)
downloadopenttd-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/autoslope.h')
0 files changed, 0 insertions, 0 deletions