X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fsmoke.c;h=db8afc7e828d6609b5c00580befdfbf07cc7b1f6;hp=19bf714fb4f5393a7bdd4c5081dc026d6fcdcfc5;hb=ef16dea09f87b15fc6d58fae0aa0832e0648c00e;hpb=2bb81ea2565c3627c954b5c37326db89b0048472 diff --git a/src/smoke.c b/src/smoke.c index 19bf714..db8afc7 100644 --- a/src/smoke.c +++ b/src/smoke.c @@ -1,24 +1,19 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 - Copyright (C) 2011 - - 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 @@ -40,41 +35,6 @@ static int lsm; static void *burnsnd; static int burntm=0; -void SMK_savegame (FILE *h) { - int i, n; - for (i = n = 0; i < MAXSMOK; ++i) { - if (sm[i].t) { - ++n; - } - } - myfwrite32(n, h); - for (i = 0; i < MAXSMOK; ++i) { - if (sm[i].t) { - myfwrite32(sm[i].x, h); - myfwrite32(sm[i].y, h); - myfwrite32(sm[i].xv, h); - myfwrite32(sm[i].xv, h); - myfwrite8(sm[i].t, h); - myfwrite8(sm[i].s, h); - myfwrite16(sm[i].o, h); - } - } -} - -void SMK_loadgame (FILE *h) { - int i, n; - n = myfread32(h); - for (i = 0; i < n; ++i) { - sm[i].x = myfread32(h); - sm[i].y = myfread32(h); - sm[i].xv = myfread32(h); - sm[i].xv = myfread32(h); - sm[i].t = myfread8(h); - sm[i].s = myfread8(h); - sm[i].o = myfread16(h); - } -} - void SMK_init (void) { int i;