diff --git a/src/guiInventoryMenu.cpp b/src/guiInventoryMenu.cpp index 8faf3d005..bf955a43e 100644 --- a/src/guiInventoryMenu.cpp +++ b/src/guiInventoryMenu.cpp @@ -309,10 +309,17 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event) } if(event.EventType==EET_MOUSE_INPUT_EVENT) { - if(event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN - || event.MouseInput.Event == EMIE_RMOUSE_PRESSED_DOWN) + char amount = -1; + + if(event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN) + amount = 0; + else if(event.MouseInput.Event == EMIE_RMOUSE_PRESSED_DOWN) + amount = 1; + else if(event.MouseInput.Event == EMIE_MMOUSE_PRESSED_DOWN) + amount = 10; + + if(amount >= 0) { - bool right = (event.MouseInput.Event == EMIE_RMOUSE_PRESSED_DOWN); v2s32 p(event.MouseInput.X, event.MouseInput.Y); //dstream<<"Mouse down at p=("<