DEADSOFTWARE

portability: avoid errors on some compilers
[flatwaifu.git] / src / a8.c
index 889e55048728f90171a3dde788e2ddd2c0e9b7fe..e6ebb4f16742e79a418cbd824330176f127319ea 100644 (file)
--- 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 <http://www.gnu.org/licenses/> 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 <http://www.gnu.org/licenses/>.
+ */
 
+/*
 #include "glob.h"
 #include <stdio.h>
 //#include <io.h>
 #include <fcntl.h>
 #include <stdlib.h>
 #include <string.h>
-#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);