diff options
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 3e3b06a693..9aa5e1e3fe 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -185,8 +185,6 @@ int Parallaction::init() { _location._startPosition.x = -1000; _location._startPosition.y = -1000; _location._startFrame = 0; - _location._walkNodes._prev = NULL; - _location._walkNodes._next = NULL; if (getFeatures() & GF_DEMO) strcpy(_location._name, "fognedemo"); @@ -416,7 +414,6 @@ void Parallaction::runGame() { void Parallaction::processInput(InputData *data) { Zone *z; - WalkNode *v4; switch (data->_event) { case kEvEnterZone: @@ -480,15 +477,16 @@ void Parallaction::processInput(InputData *data) { _procCurrentHoverItem = data->_inventoryIndex; break; - case kEvWalk: + case kEvWalk: { debugC(2, kDebugInput, "processInput: kEvWalk"); _hoverZone = NULL; changeCursor(kCursorArrow); if (_vm->_char._ani._flags & kFlagsRemove) break; if ((_vm->_char._ani._flags & kFlagsActive) == 0) break; - v4 = buildWalkPath(data->_mousePos.x, data->_mousePos.y); + WalkNodeList *v4 = _vm->_char._builder.buildPath(data->_mousePos.x, data->_mousePos.y); addJob(&jobWalk, v4, kPriority19); _engineFlags |= kEngineWalking; // inhibits processing of input until walking is over + } break; case kEvQuitGame: |