X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ffx.c;h=01e58a4e68fee1d7771776416636458be7294cd3;hb=b7c6f2a0e12b4ee2d4111d1e671bf2b8b14c71b4;hp=cea21f88d93bef50d403041e64db6865819f00e1;hpb=2bb81ea2565c3627c954b5c37326db89b0048472;p=flatwaifu.git
diff --git a/src/fx.c b/src/fx.c
index cea21f8..01e58a4 100644
--- a/src/fx.c
+++ b/src/fx.c
@@ -1,23 +1,19 @@
-/*
- Copyright (C) Prikol Software 1996-1997
- Copyright (C) Aleksey Volynskov 1996-1997
-
- This file is part of the Doom2D:Rembo project.
-
- Doom2D:Rembo is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License version 2 as
- published by the Free Software Foundation.
-
- Doom2D:Rembo is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, see or
- write to the Free Software Foundation, Inc.,
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-*/
+/* Copyright (C) 1996-1997 Aleksey Volynskov
+ * Copyright (C) 2011 Rambo
+ * Copyright (C) 2020 SovietPony
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3 of the License ONLY.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
#include "glob.h"
#include
@@ -26,7 +22,6 @@
#include "view.h"
#include "fx.h"
#include "misc.h"
-#include "my.h"
enum{NONE,TFOG,IFOG,BUBL};
@@ -97,39 +92,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");