[X] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
The changes on this PR is a simple removal of dead code.
nextStepEvent is the eventId which is supposed to be created at Player::setNextWalkTask. The only call to this method is from Game::playerAutoWalk with a nullptr.
So everytime the Player::setNextWalkTask is called is with a nullptr, which results on no code execution, as the nextStepEvent is 0 and task is null.
The nextStepEvent someday was replaced by eventWalk, which is handled by Creature::addEventWalk and Creature::stopEventWalk
Pull Request Prelude
Removes dead code from Player Walk logic
Changes Proposed
The changes on this PR is a simple removal of dead code.
nextStepEvent
is the eventId which is supposed to be created atPlayer::setNextWalkTask
. The only call to this method is fromGame::playerAutoWalk
with anullptr
. So everytime thePlayer::setNextWalkTask
is called is with a nullptr, which results on no code execution, as the nextStepEvent is 0 and task is null.The nextStepEvent someday was replaced by
eventWalk
, which is handled byCreature::addEventWalk
andCreature::stopEventWalk
Issues addressed: