Fixed (or work around?) crash when using gamepad: sometimes a menu command

would be delivered to the player controller - I assume because I might
have moded the gamepad up/down a bit(?). Auria, please have a look
if this needs a 'better' fix than just ignoring any unexpected
commands in player controller.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6659 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-11-20 04:36:38 +00:00
parent 7987ea5d59
commit 2bf841d95f

View File

@ -174,7 +174,8 @@ void PlayerController::action(PlayerAction action, int value)
case PA_DRIFT:
m_controls->m_drift = (value!=0);
break;
default: assert(false);
default:
printf("Unknown action for player controller\n");
}
} // action