Add green pulses for systems where everything is complete, to better aid replayability.

This commit is contained in:
Steve 2015-10-25 09:32:32 +00:00
parent b5154d3ab8
commit b790aa5c00
1 changed files with 13 additions and 0 deletions

View File

@ -199,6 +199,19 @@ static void addPulses(void)
pulse->life = 255; pulse->life = 255;
pulse->r = pulse->g = 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->next = pulse;
pulseTail = pulse; pulseTail = pulse;
} }