Skip to content

Collapsed movement deadlock and crash fix#231

Merged
Asdow merged 1 commit into
1dot13:masterfrom
andrzejfalkowski:collapsed-movement-deadlock-fix
Oct 2, 2023
Merged

Collapsed movement deadlock and crash fix#231
Asdow merged 1 commit into
1dot13:masterfrom
andrzejfalkowski:collapsed-movement-deadlock-fix

Conversation

@andrzejfalkowski
Copy link
Copy Markdown
Contributor

STR:

  1. Enter turn-based combat.
  2. Run around until you run out of energy and collapse mid-movement.
  3. Notice that cursor is set to run mode even though merc is prone.
  4. Trying to run or continuing interrupted movement without manually switching to crawl at this point while cause dead lock.
  5. Switching to crawl movement mode and trying to move while still out of energy will cause failed movement animation, but save a new movement plan for that merc. Trying to continue this new movement will cause crash on the second try.

Solution: switch movement mode to crawl on collapse. Check collapsed state and energy before continuing movement.

ReproSaves.zip

@Asdow Asdow merged commit 14ec138 into 1dot13:master Oct 2, 2023
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.

2 participants