mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 21:09:41 +00:00
Fix a confusing variable name
This commit is contained in:
parent
1b074e5524
commit
e7b9b6d87a
1 changed files with 2 additions and 2 deletions
4
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
4
extern/sdl4ogre/sdlinputwrapper.cpp
vendored
|
@ -241,8 +241,8 @@ namespace SFO
|
||||||
|
|
||||||
//eep, wrap the pointer manually if the input driver doesn't support
|
//eep, wrap the pointer manually if the input driver doesn't support
|
||||||
//relative positioning natively
|
//relative positioning natively
|
||||||
int success = SDL_SetRelativeMouseMode(relative ? SDL_TRUE : SDL_FALSE);
|
bool success = SDL_SetRelativeMouseMode(relative ? SDL_TRUE : SDL_FALSE) == 0;
|
||||||
if(relative && success != 0)
|
if(relative && !success)
|
||||||
mWrapPointer = true;
|
mWrapPointer = true;
|
||||||
|
|
||||||
//now remove all mouse events using the old setting from the queue
|
//now remove all mouse events using the old setting from the queue
|
||||||
|
|
Loading…
Reference in a new issue