Don't select star systems when scrolling (release and click button).

This commit is contained in:
Steve 2016-07-23 15:53:31 +01:00
parent 5f06b50ea6
commit b6ec680127
1 changed files with 4 additions and 2 deletions

View File

@ -699,8 +699,6 @@ static void handleKeyboard(void)
static void handleMouse(void) static void handleMouse(void)
{ {
scrollingMap = 0;
if (app.mouse.button[SDL_BUTTON_LEFT]) if (app.mouse.button[SDL_BUTTON_LEFT])
{ {
if (app.mouse.dx != 0 || app.mouse.dy != 0) if (app.mouse.dx != 0 || app.mouse.dy != 0)
@ -708,6 +706,10 @@ static void handleMouse(void)
scrollingMap = 1; scrollingMap = 1;
} }
} }
else
{
scrollingMap = 0;
}
} }
static void startMission(void) static void startMission(void)