Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.12k stars 518 forks source link

Hover units track back to their route after overshooting a turn. #3376

Open mirror176 opened 10 months ago

mirror176 commented 10 months ago

Describe the bug Hover units traveling at high speed may not slow or turn enough to go through intended route. They may backtrack to try to take that route when their current location now has a shorter route.

To Reproduce

  1. Steps to reproduce the behavior:
  2. Played on DustyMaze with a wall protruding to the right.
  3. Unit approached from lower left trying to get to upper left.
  4. enemy had a bunker 1 square to the right of the wall and two squares above it; moving between the bunker and wall was the shortest route.
  5. Unit slid past the bunker on its right and did a u-turn to go back and pass the bunker on the left; at that point it would be shorter to not go back to bunker to go northwest.

Expected behavior Likely would need the route recalculated after a unit is 1 or 2 grid hexes off of its path.

Screenshots or Videos If applicable, add screenshots to help explain your problem.

Your System:

Additional context Aircraft may also be influenced by this while other units stick to the ground enough that they don't miss their path as long as weapons never get ability to push units around due to explosive blast radius.

mirror176 commented 10 months ago

I had a screenshot of the layout but not multiple screenshots or a video showing the issue with the unit present at different stages of the motion. I can find a way to attach later if needed but for now github was rejecting the png screenshots.