//free(pal);\r
}\r
\r
+//what is *i, w, q, qq, z, aq, aa, pp, qp, and aqoffset...\r
+//pp is related to i\r
+\r
void\r
-VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, global_game_variables_t *gv)\r
+VL_palette(imgtestpal_t *bmp, byte *p, word *i, word qp, word aqoffset, word *apal, global_game_variables_t *gv)\r
{\r
//byte *p = bmp->palette;\r
word w=0;\r
word q=0;\r
word qq=0;\r
- static word a[PAL_SIZE]; //palette array of change values!\r
+ word a[PAL_SIZE]; //palette array of change values!\r
word z=0, aq=0, aa=0, pp=0;\r
\r
//modexWaitBorder();\r
printf(" aa=%02d\n", aa);//\r
#endif\r
//update the palette~\r
- VL_palette(bmp, p, &pp, aq, aqoffset, gv);\r
+ VL_palette(bmp, p, &pp, aq, aqoffset, &a, gv);\r
(*i)=pp;\r
\r
if(aq<aa){ pp=q; aq++; goto aqpee; }\r