Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vehicles getting stuck in cityscape #1255

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

Kurtsley
Copy link
Contributor

I think I finally narrowed this problem down. The vehicle was attempting to sidestep to another location when it had 0 tickstoturn. Since it was trying to turn but couldn't, this froze the vehicle in place. This checks if tickstoturn is over 0 before sidestepping. I will admit that I can't test every situation that could happen so this could have unforeseen consequences. I have included the save I was using to test, it is a gigantic firefight. One or more vehicles would get stuck every other time I played on average before the fix. So far the fix has stopped any vehicles from getting stuck for 30 plus playthroughs of the fight.

save_stucktest.zip

@FilmBoy84
Copy link
Collaborator

Generated a significantly large UFO incursion with debug and no stuck vehicles there either
This seems to work
Many thanks for your efforts in resolving this

@FilmBoy84 FilmBoy84 merged commit c98d02c into OpenApoc:master Nov 26, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants