Hide input device badges when in single-player mode since the player can use all of them

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7519 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-01-24 01:44:07 +00:00
parent 368a7ebd13
commit 9421df49ad

View File

@ -263,13 +263,16 @@ public:
m_player_ident_spinner->m_w = player_name_w;
m_player_ident_spinner->m_h = player_name_h;
if (associatedPlayer->getDevice()->getType() == DT_KEYBOARD)
if (parent->m_multiplayer)
{
m_player_ident_spinner->setBadge(KEYBOARD_BADGE);
}
else if (associatedPlayer->getDevice()->getType() == DT_GAMEPAD)
{
m_player_ident_spinner->setBadge(GAMEPAD_BADGE);
if (associatedPlayer->getDevice()->getType() == DT_KEYBOARD)
{
m_player_ident_spinner->setBadge(KEYBOARD_BADGE);
}
else if (associatedPlayer->getDevice()->getType() == DT_GAMEPAD)
{
m_player_ident_spinner->setBadge(GAMEPAD_BADGE);
}
}
if (irrlichtWidgetID == -1)