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:
parent
368a7ebd13
commit
9421df49ad
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user