X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Ffx.c;h=252eb8ae61b14e46cf454b50a98fbc03471f182b;hp=cea21f88d93bef50d403041e64db6865819f00e1;hb=563dffaf02ff36da4054f937fcc9f99a072e15bf;hpb=2bb81ea2565c3627c954b5c37326db89b0048472 diff --git a/src/fx.c b/src/fx.c index cea21f8..252eb8a 100644 --- a/src/fx.c +++ b/src/fx.c @@ -97,39 +97,6 @@ static void init_fx1sin(void) { } } -void FX_savegame (FILE *h) { - int i, n; - for (i = n = 0; i < MAXFX; ++i) { - if (fx[i].t) { - ++n; - } - } - myfwrite32(n, h); - for (i = 0; i < MAXFX; ++i) { - if (fx[i].t) { - myfwrite32(fx[i].x, h); - myfwrite32(fx[i].y, h); - myfwrite32(fx[i].xv, h); - myfwrite32(fx[i].yv, h); - myfwrite8(fx[i].t, h); - myfwrite8(fx[i].s, h); - } - } -} - -void FX_loadgame (FILE *h) { - int i, n; - n = myfread32(h); - for (i = 0; i < n; i++) { - fx[i].x = myfread32(h); - fx[i].y = myfread32(h); - fx[i].xv = myfread32(h); - fx[i].yv = myfread32(h); - fx[i].t = myfread8(h); - fx[i].s = myfread8(h); - } -} - void FX_alloc (void) { bsnd[0]=Z_getsnd("BUBL1"); bsnd[1]=Z_getsnd("BUBL2");