From eaea32c934ba520dc038bd2bd2e14e203181fa40 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 20 Oct 2015 13:13:09 +0100 Subject: [PATCH] Galactic map bug fixes. --- src/galaxy/galacticMap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/galaxy/galacticMap.c b/src/galaxy/galacticMap.c index 431d965..8187f94 100644 --- a/src/galaxy/galacticMap.c +++ b/src/galaxy/galacticMap.c @@ -560,7 +560,7 @@ static void handleGalaxyKB(void) camera.y += CAMERA_SPEED; } - if (app.keyboard[SDL_SCANCODE_RETURN]) + if (app.keyboard[SDL_SCANCODE_RETURN] && selectedStarSystem) { selectStarSystem(); memset(app.keyboard, 0, sizeof(int) * MAX_KEYBOARD_KEYS); @@ -601,7 +601,7 @@ static void handleSelectedSystemKB(void) nextMission(); } - if (app.keyboard[SDL_SCANCODE_RETURN] && selectedMission->available) + if (app.keyboard[SDL_SCANCODE_RETURN]) { if (selectedMission->available) {