Skip to content

Commit

Permalink
remove bad wind tool exception, make sure UpdateDrawMode() is called …
Browse files Browse the repository at this point in the history
…on zoom mouseups

should be pretty easy to remove any remaining tptmp syncing issues now. There are still a few possible bugs in my list but they require a mouse to test ...
  • Loading branch information
jacob1 committed Sep 24, 2015
1 parent 5acf366 commit 610cd82
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/gui/game/GameView.cpp
Expand Up @@ -1217,14 +1217,14 @@ void GameView::OnMouseUp(int x, int y, unsigned button)
// plop tool stuff (like STKM)
c->ToolClick(toolIndex, finalDrawPoint2);
}

// update the drawing mode for the next line
// since ctrl/shift state may have changed since we started drawing
UpdateDrawMode();
}
// this shouldn't happen, but do this just in case
else if (selectMode != SelectNone && button != BUTTON_LEFT)
selectMode = SelectNone;

// update the drawing mode for the next line
// since ctrl/shift state may have changed since we started drawing
UpdateDrawMode();
}

void GameView::ExitPrompt()
Expand Down Expand Up @@ -1368,10 +1368,7 @@ void GameView::OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool
}
else
{
if (drawMode != DrawLine && !windTool)
{
isMouseDown = false;
}
isMouseDown = false;
zoomCursorFixed = false;
c->SetZoomEnabled(true);
}
Expand Down

0 comments on commit 610cd82

Please sign in to comment.