Skip to content

Commit

Permalink
Only use mouse up event for switching inventory bags, fixes #781
Browse files Browse the repository at this point in the history
  • Loading branch information
Eli2 committed Nov 14, 2015
1 parent d2e675a commit 2a65269
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/hud/PlayerInventory.cpp
Expand Up @@ -258,7 +258,7 @@ void PlayerInventoryHud::draw() {
GRenderer->SetRenderState(Renderer::AlphaBlending, false);
SpecialCursor=CURSOR_INTERACTION_ON;

if(eeMouseDown1() || (eeMouseUp1() && DRAGINTER)) {
if(eeMouseUp1()) {
previousBag();
}
}
Expand All @@ -278,7 +278,7 @@ void PlayerInventoryHud::draw() {
GRenderer->SetRenderState(Renderer::AlphaBlending, false);
SpecialCursor=CURSOR_INTERACTION_ON;

if(eeMouseDown1() || (eeMouseUp1() && DRAGINTER)) {
if(eeMouseUp1()) {
nextBag();
}
}
Expand Down

0 comments on commit 2a65269

Please sign in to comment.