Wrap code with {}. g++ dislikes new variables in switch/case if labels follow.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7137 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
mbjornstk 2010-12-22 01:00:56 +00:00
parent a49c2f81e7
commit 47a7f77b33

View File

@ -264,6 +264,7 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int button,
}
break;
case Input::IT_STICKMOTION:
{
std::cout << "%% storing new axis binding, value=" << value <<
" deviceID=" << deviceID << " button=" << button << " axisDirection=" <<
(axisDirection == Input::AD_NEGATIVE ? "-" : "+") << "\n";
@ -312,7 +313,8 @@ void InputManager::inputSensing(Input::InputType type, int deviceID, int button,
OptionsScreenInput2::getInstance()->gotSensedInput(sensed_input);
}
break;
}
case Input::IT_NONE:
case Input::IT_STICKHAT:
case Input::IT_MOUSEMOTION: