Minor changes
Update hovered widget when moving widget Remove lockWalk from g_game.follow()
This commit is contained in:
parent
325b711181
commit
ec1d5aa260
|
@ -845,6 +845,10 @@ bool UIWidget::setRect(const Rect& rect)
|
||||||
m_updateEventScheduled = true;
|
m_updateEventScheduled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// update hovered widget when moved behind mouse area
|
||||||
|
if(containsPoint(g_window.getMousePosition()))
|
||||||
|
g_ui.updateHoveredWidget();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -779,8 +779,6 @@ void Game::follow(const CreaturePtr& creature)
|
||||||
if(!canPerformGameAction() || creature == m_localPlayer || creature == m_followingCreature)
|
if(!canPerformGameAction() || creature == m_localPlayer || creature == m_followingCreature)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_localPlayer->lockWalk();
|
|
||||||
|
|
||||||
if(creature && isAttacking())
|
if(creature && isAttacking())
|
||||||
cancelAttack();
|
cancelAttack();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue