MM V0: Ed(na) walk fix
|Reported by:||SF/tobigun||Owned by:||Kirben|
Ed and Edna are getting stuck when they try to catch one of the kids. For example Edna at the left corner of the kitchen or Ed when he tries to go down the stairs in the basement.
The script for following the intruder starts the walkActorToActor() in very small intervals (multiple times per second). This messes up the _walkdata.curbox (the next box) and _walkbox (the current box) states. If the actor reaches the next walkbox, ScummVM marks _walkdata.curbox to be used as _walkbox at the next call of some walk related routine. But before this routine is called, the script will call Actor::startWalkActor() again and the state of _walkdata.curbox and _walkbox is reset to the old values and the transition will not happen, the actor is stuck in the old walkbox.
This problem is not present in MM V1. The only difference in the script for Edna in the kitchen (script 30 in V0, 36 in V1) is an additional breakHere() after walkActorToActor() that is present in V1 but not in V0. Simply adding the breakHere() at the end of walkActorToActor() for V0 solves the problem.
Ticket imported from: #2971126. Ticket imported from: patches/1253.