X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ffiles.c;h=1141c3b308e41a06dc9c9e7e4665d33c811b41db;hb=10bdd396f0cd0ff1fc0a504cd41949ff39937b30;hp=704ca271b9f3c40f6fae889dec624f7ad6533f64;hpb=9df860ab2839447c7143bbe705a573df152d7734;p=flatwaifu.git diff --git a/src/files.c b/src/files.c index 704ca27..1141c3b 100644 --- a/src/files.c +++ b/src/files.c @@ -20,25 +20,12 @@ #include #include #include -#ifdef UNIX -# include -#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" @@ -159,23 +146,6 @@ void F_randmus (char *s) { } } -// 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) {