Increased size of star system collision zone.
This commit is contained in:
parent
a278f3554b
commit
bd1f5f2bfc
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue