Fix auto chase override
This commit is contained in:
parent
403ed3c10f
commit
0bb991e14e
|
@ -3,4 +3,4 @@ Font
|
||||||
texture: verdana-11px-monochrome_cp1252.png
|
texture: verdana-11px-monochrome_cp1252.png
|
||||||
height: 14
|
height: 14
|
||||||
glyph-size: 16 16
|
glyph-size: 16 16
|
||||||
space-width: 4
|
space-width: 3
|
||||||
|
|
|
@ -33,7 +33,8 @@ function init()
|
||||||
onFightModeChange = update,
|
onFightModeChange = update,
|
||||||
onChaseModeChange = update,
|
onChaseModeChange = update,
|
||||||
onSafeFightChange = update,
|
onSafeFightChange = update,
|
||||||
onWalk = check
|
onWalk = check,
|
||||||
|
onAutoWalk = check
|
||||||
})
|
})
|
||||||
|
|
||||||
if g_game.isOnline() then
|
if g_game.isOnline() then
|
||||||
|
@ -56,7 +57,8 @@ function terminate()
|
||||||
onFightModeChange = update,
|
onFightModeChange = update,
|
||||||
onChaseModeChange = update,
|
onChaseModeChange = update,
|
||||||
onSafeFightChange = update,
|
onSafeFightChange = update,
|
||||||
onWalk = check
|
onWalk = check,
|
||||||
|
onAutoWalk = check
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -499,9 +499,9 @@ void Game::walk(Otc::Direction direction)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
forceWalk(direction);
|
|
||||||
|
|
||||||
g_lua.callGlobalField("g_game", "onWalk", direction);
|
g_lua.callGlobalField("g_game", "onWalk", direction);
|
||||||
|
|
||||||
|
forceWalk(direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
|
void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
|
||||||
|
@ -529,9 +529,9 @@ void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
|
||||||
m_localPlayer->preWalk(direction);
|
m_localPlayer->preWalk(direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_protocolGame->sendAutoWalk(dirs);
|
|
||||||
|
|
||||||
g_lua.callGlobalField("g_game", "onAutoWalk", dirs);
|
g_lua.callGlobalField("g_game", "onAutoWalk", dirs);
|
||||||
|
|
||||||
|
m_protocolGame->sendAutoWalk(dirs);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::forceWalk(Otc::Direction direction)
|
void Game::forceWalk(Otc::Direction direction)
|
||||||
|
|
Loading…
Reference in New Issue