From bd1f5f2bfc40dd8bc239919196e9cac528a05e85 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 26 Nov 2015 17:41:58 +0000 Subject: [PATCH] Increased size of star system collision zone. --- src/galaxy/galacticMap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/galaxy/galacticMap.c b/src/galaxy/galacticMap.c index f9f19e0..9ba24d5 100644 --- a/src/galaxy/galacticMap.c +++ b/src/galaxy/galacticMap.c @@ -153,8 +153,8 @@ static void doStarSystems(void) completedMissions = totalMissions = completedChallenges = totalChallenges = 0; - cx = app.mouse.x - app.mouse.w / 2; - cy = app.mouse.y - app.mouse.h / 2; + cx = app.mouse.x - 32; + cy = app.mouse.y - 32; selectedStarSystem = NULL; @@ -165,7 +165,7 @@ static void doStarSystems(void) completedChallenges += starSystem->completedChallenges; totalChallenges += starSystem->totalChallenges; - if (starSystem->totalMissions > 0 && collision(cx, cy, app.mouse.w, app.mouse.y, starSystem->x - camera.x, starSystem->y - camera.y, 4, 4)) + if (starSystem->totalMissions > 0 && collision(cx, cy, 64, 64, starSystem->x - camera.x, starSystem->y - camera.y, 4, 4)) { if (selectedStarSystem != starSystem) {