Fixed left/right ribbon arrows

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2010-05-08 18:41:26 +00:00
parent 798c458ac5
commit 8bb6ca6ac6
2 changed files with 1 additions and 3 deletions

View File

@@ -480,8 +480,6 @@ EventPropagation EventHandler::onGUIEvent(const SEvent& event)
Widget* w = GUIEngine::getWidget(id);
if (w == NULL) break;
if (!w->m_focusable) return GUIEngine::EVENT_BLOCK;
// These events are only triggered by keyboard/mouse (or so I hope...)
const int playerID = input_manager->getPlayerKeyboardID();
if (input_manager->masterPlayerOnly() && playerID != PLAYER_ID_GAME_MASTER) break;

View File

@@ -504,7 +504,7 @@ EventPropagation DynamicRibbonWidget::leftPressed(const int playerID)
EventPropagation DynamicRibbonWidget::transmitEvent(Widget* w, std::string& originator, const int playerID)
{
if (m_deactivated) return EVENT_LET;
if (originator=="left")
{
scroll(-1);