diff options
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", |