updated URL of forum and table in readme file
[neverball] / share / binary.c
index 4618d98..3ba6c3e 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include <SDL.h>
 #include <SDL_byteorder.h>
@@ -106,19 +107,4 @@ void get_array(FILE *fin, float *v, size_t n)
         get_float(fin, v + i);
 }
 
-/*needed for old-style replay compatability*/
-void get_short(FILE *fin, short *s)
-{
-    unsigned char *p = (unsigned char *) s;
-
-#if SDL_BYTEORDER == SDL_BIG_ENDIAN
-    p[1] = (unsigned char) fgetc(fin);
-    p[0] = (unsigned char) fgetc(fin);
-#else
-    p[0] = (unsigned char) fgetc(fin);
-    p[1] = (unsigned char) fgetc(fin);
-#endif
-}
-
-
 /*---------------------------------------------------------------------------*/