From da3dc7a1d7735c0356b90cf62d93db62588267d4 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 20 May 2020 21:08:31 +0000 Subject: Fixed background and random colours. --- galax.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/galax.c b/galax.c index c67db3e..a45e5f4 100644 --- a/galax.c +++ b/galax.c @@ -271,7 +271,12 @@ static Colour cols[NOCOLS]= #define NOPLXST 30 #define NOPLXPL 3 -struct {int x,y,c;} plxst[NOPLXST][NOPLXPL]; +struct +{ + int x; + int y; + ulong c; +} plxst[NOPLXST][NOPLXPL]; /* User bullet vars @@ -371,7 +376,7 @@ int main(int argc, char *argv[]) { plxst[f][r].x=RND(WINW); plxst[f][r].y=RND(WINH); - plxst[f][r].c=RNDCOL; + plxst[f][r].c=pix[RNDCOL]; } for(f=0;f<3600;f++) @@ -649,7 +654,7 @@ static void Cls(int plx,int xi,int yi,int clr) plxst[f][r].x-=WINW; if (!(col%10)) - plxst[f][r].c=RNDCOL; + plxst[f][r].c=pix[RNDCOL]; (*POKEIMG)(img,plxst[f][r].x,plxst[f][r].y,plxst[f][r].c); } @@ -810,7 +815,7 @@ static XFuncControl ProcessTitle(void) if ((ctr/100)%2) { - Centre(70,RNDCOL,"ALL TIME HEROES"); + Centre(70,pix[RNDCOL],"ALL TIME HEROES"); for(f=0;f