Fixed pulse logic.
This commit is contained in:
parent
bef2511ac4
commit
3ad64a1d1d
|
@ -187,7 +187,9 @@ static void addPulses(void)
|
|||
pulseTail->next = pulse;
|
||||
pulseTail = pulse;
|
||||
}
|
||||
else if (starSystem->completedChallenges < starSystem->totalChallenges && pulseTimer % (FPS * 2) == 0)
|
||||
else if (starSystem->completedChallenges < starSystem->totalChallenges)
|
||||
{
|
||||
if (pulseTimer % (FPS * 2) == 0)
|
||||
{
|
||||
pulse = malloc(sizeof(Pulse));
|
||||
memset(pulse, 0, sizeof(Pulse));
|
||||
|
@ -200,7 +202,10 @@ static void addPulses(void)
|
|||
pulseTail->next = pulse;
|
||||
pulseTail = pulse;
|
||||
}
|
||||
else if (starSystem->totalMissions > 0 && pulseTimer % (FPS * 3) == 0)
|
||||
}
|
||||
else if (starSystem->totalMissions > 0)
|
||||
{
|
||||
if (pulseTimer % (FPS * 3) == 0)
|
||||
{
|
||||
pulse = malloc(sizeof(Pulse));
|
||||
memset(pulse, 0, sizeof(Pulse));
|
||||
|
@ -214,6 +219,7 @@ static void addPulses(void)
|
|||
pulseTail = pulse;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void doPulses(void)
|
||||
|
|
Loading…
Reference in New Issue