diff --git a/src/files.c b/src/files.c
index 704ca271b9f3c40f6fae889dec624f7ad6533f64..1141c3b308e41a06dc9c9e7e4665d33c811b41db 100644 (file)
--- a/src/files.c
+++ b/src/files.c
#include <string.h>
#include <stdlib.h>
#include <assert.h>
-#ifdef UNIX
-# include <sys/stat.h>
-#endif
#include "files.h"
-#include "map.h"
-#include "my.h"
-#include "game.h"
-#include "view.h"
-#include "dots.h"
-#include "smoke.h"
-#include "fx.h"
-#include "items.h"
-#include "monster.h"
-#include "player.h"
-#include "switch.h"
-#include "weapons.h"
#include "error.h"
#include "cp866.h"
+#include "map.h" // MAP_load
+
#include "common/streams.h"
#include "common/files.h"
#include "common/wadres.h"
}
}
-// reads bytes from file until CR
-void F_readstr (FILE* h, char *s, int m) {
- int i = 0;
- size_t len = 0;
- static char c = 0;
- while (i < m) {
- c = 13;
- len = myfreadc(&c, 1, 1, h);
- if (len == 0 || c == 13 || c == 10) {
- break;
- }
- s[i] = c;
- i++;
- }
- s[i] = 0;
-}
-
void F_loadmap (char n[8]) {
int id = F_getresid(n);
if (id != -1) {