mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Fixed up movement controls again and fixed a typo.
* You can change direction while already moving (There could be a better way for walking control, but this works fine for now)
This commit is contained in:
@@ -538,8 +538,7 @@ bool Game::walk(Otc::Direction direction)
|
||||
if(m_lastWalkDir != direction) {
|
||||
// must add a new walk event
|
||||
float ticks = m_localPlayer->getStepTicksLeft();
|
||||
if(ticks < 0)
|
||||
ticks = 0;
|
||||
if(ticks < 0) { ticks = 0; }
|
||||
|
||||
if(m_walkEvent) {
|
||||
m_walkEvent->cancel();
|
||||
|
Reference in New Issue
Block a user