X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fa8.c;h=7b461c9c43a4203e1d3052c21f98767a9adb9236;hb=refs%2Fheads%2Frenders;hp=889e55048728f90171a3dde788e2ddd2c0e9b7fe;hpb=a46a1d55c077e3aa91a728047409050187e90083;p=flatwaifu.git diff --git a/src/a8.c b/src/a8.c index 889e550..e6ebb4f 100644 --- a/src/a8.c +++ b/src/a8.c @@ -1,36 +1,32 @@ -/* - 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 + * + * 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 //#include #include #include #include -#include "vga.h" +//#include "vga.h" #include "keyb.h" #include "error.h" #include "files.h" #include "sound.h" - +#include "a8.h" +*/ /* #define WAIT_SZ 400000 @@ -218,7 +214,7 @@ int A8_nextframe(void) { p=draw2(p); break; default: - ERR_fatal("Плохой блок в файле A8"); + ERR_fatal("Bad block in A8 file"); } ++frame; return 1; @@ -283,10 +279,10 @@ int A8_start(char *nm) { } sprintf(s,"%sA8\\%s.A8",cd_path,nm); if((fh=fopen(s,"rb"))==NULL) { - ERR_fatal("Не могу открыть файл %s",s); + ERR_fatal("Unable to open file %s",s); } myfread(&ah,1,sizeof(ah)-4,fh); - if(ah.id!=A8_ID || ah.ver!=0) ERR_fatal("Испорченный файл A8 %s",s); + if(ah.id!=A8_ID || ah.ver!=0) ERR_fatal("Bad A8 file %s",s); fseek(fh,0,SEEK_END); fsz=ftell(fh)-sizeof(ah)+4; fseek(fh,sizeof(ah)-4,SEEK_SET);