X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Ffx.c;h=2af618046ee74b2a76b8f923ddc749d00d7a5be7;hp=2b81fd652610230a8331ca015dc1e86be90ccc92;hb=534310c1f131bb9a53be865c32d90342ed026734;hpb=1907773f7b61fb7e58c585a183180b44d213a286 diff --git a/src/fx.c b/src/fx.c index 2b81fd6..2af6180 100644 --- a/src/fx.c +++ b/src/fx.c @@ -31,16 +31,9 @@ enum{NONE,TFOG,IFOG,BUBL}; -#pragma pack(1) -typedef struct{ - int x,y,xv,yv; - char t,s; -}fx_t; -#pragma pack() - -static void *spr[15],*bsnd[2]; -static char sprd[15]; -static fx_t fx[MAXFX]; +fx_t fx[MAXFX]; + +static void *bsnd[2]; static char bubsn; static int last; @@ -139,10 +132,6 @@ void FX_loadgame (FILE *h) { } void FX_alloc(void) { - int i; - - for(i=0;i<10;++i) spr[i]=Z_getspr("TFOG",i,0,sprd+i); - for(;i<15;++i) spr[i]=Z_getspr("IFOG",i-10,0,sprd+i); bsnd[0]=Z_getsnd("BUBL1"); bsnd[1]=Z_getsnd("BUBL2"); init_fx1sin(); @@ -178,22 +167,6 @@ void FX_act(void) { } } -void FX_draw(void) { - int i,s; - - for(i=0;i>8)-w_x+WD/2,(fx[i].y>>8)-w_y+HT/2+1+w_o,0xC0+fx[i].s);//V_dot((fx[i].x>>8)-w_x+100,(fx[i].y>>8)-w_y+50+w_o,0xC0+fx[i].s); - continue; - } - if(s>=0) Z_drawspr(fx[i].x,fx[i].y,spr[s],sprd[s]); - } -} - static int findfree(void) { int i;