Galactic map bug fixes.

This commit is contained in:
Steve 2015-10-20 13:13:09 +01:00
parent 24bf15ce09
commit eaea32c934
1 changed files with 2 additions and 2 deletions

View File

@ -560,7 +560,7 @@ static void handleGalaxyKB(void)
camera.y += CAMERA_SPEED; camera.y += CAMERA_SPEED;
} }
if (app.keyboard[SDL_SCANCODE_RETURN]) if (app.keyboard[SDL_SCANCODE_RETURN] && selectedStarSystem)
{ {
selectStarSystem(); selectStarSystem();
memset(app.keyboard, 0, sizeof(int) * MAX_KEYBOARD_KEYS); memset(app.keyboard, 0, sizeof(int) * MAX_KEYBOARD_KEYS);
@ -601,7 +601,7 @@ static void handleSelectedSystemKB(void)
nextMission(); nextMission();
} }
if (app.keyboard[SDL_SCANCODE_RETURN] && selectedMission->available) if (app.keyboard[SDL_SCANCODE_RETURN])
{ {
if (selectedMission->available) if (selectedMission->available)
{ {