Increased size of star system collision zone.

This commit is contained in:
Steve 2015-11-26 17:41:58 +00:00
parent a278f3554b
commit bd1f5f2bfc
1 changed files with 3 additions and 3 deletions

View File

@ -153,8 +153,8 @@ static void doStarSystems(void)
completedMissions = totalMissions = completedChallenges = totalChallenges = 0; completedMissions = totalMissions = completedChallenges = totalChallenges = 0;
cx = app.mouse.x - app.mouse.w / 2; cx = app.mouse.x - 32;
cy = app.mouse.y - app.mouse.h / 2; cy = app.mouse.y - 32;
selectedStarSystem = NULL; selectedStarSystem = NULL;
@ -165,7 +165,7 @@ static void doStarSystems(void)
completedChallenges += starSystem->completedChallenges; completedChallenges += starSystem->completedChallenges;
totalChallenges += starSystem->totalChallenges; 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) if (selectedStarSystem != starSystem)
{ {