Add green pulses for systems where everything is complete, to better aid replayability.
This commit is contained in:
parent
b5154d3ab8
commit
b790aa5c00
|
@ -199,6 +199,19 @@ static void addPulses(void)
|
|||
pulse->life = 255;
|
||||
pulse->r = pulse->g = 255;
|
||||
|
||||
pulseTail->next = pulse;
|
||||
pulseTail = pulse;
|
||||
}
|
||||
else if (starSystem->totalMissions > 0 && pulseTimer % (FPS * 3) == 0)
|
||||
{
|
||||
pulse = malloc(sizeof(Pulse));
|
||||
memset(pulse, 0, sizeof(Pulse));
|
||||
|
||||
pulse->x = starSystem->x;
|
||||
pulse->y = starSystem->y;
|
||||
pulse->life = 255;
|
||||
pulse->g = 255;
|
||||
|
||||
pulseTail->next = pulse;
|
||||
pulseTail = pulse;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue