From 4b9721e6cd83457d70cd9b57c15c8a342f0992e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=96yvind=20Johannessen?= Date: Sun, 28 Jun 2009 00:34:14 +0200 Subject: [PATCH] Give stars different colours, but keep it barely noticeable. --- src/starfield.cpp | 5 ++++- src/starfield.h | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/starfield.cpp b/src/starfield.cpp index c72cbec..85e9685 100644 --- a/src/starfield.cpp +++ b/src/starfield.cpp @@ -29,6 +29,9 @@ void Starfield::positionStar(int star) starx[star]=newx; stary[star]=newy; starc[star]=0; + starRed[star]=0.7+randy()*0.3; + starGreen[star]=0.7+randy()*0.3; + starBlue[star]=1; } @@ -61,7 +64,7 @@ void Starfield::drawStarsOn(SDL_Surface *surf) return; } for(int n=0;n