diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-05-20 21:08:31 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-05-20 21:08:31 +0000 |
commit | da3dc7a1d7735c0356b90cf62d93db62588267d4 (patch) | |
tree | b598703a0f8a8b23543ae235986e40f7f46da22f /galax.c | |
parent | ac36c32dd961db414298c36fb0390c02444553fa (diff) |
Fixed background and random colours.
Diffstat (limited to 'galax.c')
-rw-r--r-- | galax.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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<NOHI;f++) XIprintf(img,CH(4,95+f*10),WHITE, "%2d %-3s %8d %5.1f%% %3d", |