rnd-20090722-2-src
[rocksndiamonds.git] / src / game_sp / vb_lib.c
index c4df2cf3d853ce0493659bcec7a4623251287b6b..d32a62f85b9a8e2c359f79ebbba75e4267081f56 100644 (file)
@@ -59,12 +59,12 @@ boolean STRING_IS_LIKE(char *a, char *b)
 }
 
 
-void FILE_GET(FILE *a, int b, void *c, int d)
+void FILE_GET(FILE *file, int offset, void *buffer, int num_bytes)
 {
-  fseek(a, b, SEEK_SET);
+  fseek(file, offset - 1, SEEK_SET);
 
-  while (d--)
-    *(byte *)c++ = fgetc(a);
+  while (num_bytes--)
+    *(byte *)buffer++ = fgetc(file);
 }
 
 int FILE_PUT(FILE *a, int b, void *c, int d)