diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-24 08:23:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-24 08:23:38 +0400 |
commit | 91a24654ddae7359f1b20161ba0a7a37958d91e1 (patch) | |
tree | d3d80114143b25f2393b08e53cfd5266450459ad /source/gameengine/GameLogic | |
parent | 4c4aeaa5467e7f303aeb0da55731ee2294d6b376 (diff) |
Code Cleanup: whitespace / formatting
Diffstat (limited to 'source/gameengine/GameLogic')
-rw-r--r-- | source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp index 793ce6a7b83..6e379c91d0c 100644 --- a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp +++ b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp @@ -293,10 +293,11 @@ void SCA_Joystick::DestroyJoystickDevice(void) #ifdef WITH_SDL if (m_isinit) { #if SDL_VERSION_ATLEAST(2, 0, 0) - if (SDL_JoystickGetAttached(m_private->m_joystick)) { + if (SDL_JoystickGetAttached(m_private->m_joystick)) #else - if (SDL_JoystickOpened(m_joyindex)) { + if (SDL_JoystickOpened(m_joyindex)) #endif + { JOYSTICK_ECHO("Closing-joystick " << m_joyindex); SDL_JoystickClose(m_private->m_joystick); } |