mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-17 17:46:39 +00:00
clang-format
This commit is contained in:
parent
cf51812a6f
commit
81fc72a5b8
1 changed files with 1 additions and 2 deletions
|
@ -76,8 +76,7 @@ namespace MWInput
|
||||||
winMgr->setCursorActive(true);
|
winMgr->setCursorActive(true);
|
||||||
|
|
||||||
// Check if this movement is from our recent mouse warp
|
// Check if this movement is from our recent mouse warp
|
||||||
bool isFromWarp = (mLastWarpX >= 0 && mLastWarpY >= 0
|
bool isFromWarp = (mLastWarpX >= 0 && mLastWarpY >= 0 && std::abs(mGuiCursorX - mLastWarpX) < 0.5f
|
||||||
&& std::abs(mGuiCursorX - mLastWarpX) < 0.5f
|
|
||||||
&& std::abs(mGuiCursorY - mLastWarpY) < 0.5f);
|
&& std::abs(mGuiCursorY - mLastWarpY) < 0.5f);
|
||||||
|
|
||||||
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible()
|
if (Settings::gui().mControllerMenus && !winMgr->getCursorVisible()
|
||||||
|
|
Loading…
Reference in a new issue