Don't select star systems when scrolling (release and click button).
This commit is contained in:
parent
5f06b50ea6
commit
b6ec680127
|
@ -699,8 +699,6 @@ static void handleKeyboard(void)
|
|||
|
||||
static void handleMouse(void)
|
||||
{
|
||||
scrollingMap = 0;
|
||||
|
||||
if (app.mouse.button[SDL_BUTTON_LEFT])
|
||||
{
|
||||
if (app.mouse.dx != 0 || app.mouse.dy != 0)
|
||||
|
@ -708,6 +706,10 @@ static void handleMouse(void)
|
|||
scrollingMap = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
scrollingMap = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static void startMission(void)
|
||||
|
|
Loading…
Reference in New Issue