mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-18 19:46:36 +00:00
Fix controller tooltips in magic menu appearing for wrong spell
This commit is contained in:
parent
a6d03717cb
commit
a824993a60
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ namespace MWInput
|
|||
void MouseManager::warpMouseToWidget(MyGUI::Widget* widget)
|
||||
{
|
||||
float widgetX = widget->getAbsoluteCoord().left + widget->getWidth() / 2;
|
||||
float widgetY = widget->getAbsoluteCoord().top + widget->getHeight() - 30;
|
||||
float widgetY = widget->getAbsoluteCoord().top + widget->getHeight() / 4;
|
||||
if (std::abs(mGuiCursorX - widgetX) > 1 || std::abs(mGuiCursorY - widgetY) > 1)
|
||||
{
|
||||
mGuiCursorX = widgetX;
|
||||
|
|
Loading…
Reference in a new issue