X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fclient%2Fio.c;h=4623b3d89bbe4e6aa1912c24b8acdec649637b34;hb=316a56901b2249264b72992fd5aa63ce16fd3304;hp=998691cc9637e1b4be8236b79b1fe57d096d4339;hpb=0b7798939c0193fd794985b503737e40d8602313;p=plomrogue diff --git a/src/client/io.c b/src/client/io.c index 998691c..4623b3d 100644 --- a/src/client/io.c +++ b/src/client/io.c @@ -5,6 +5,7 @@ #include /* open() */ #include /* PIPE_BUF */ #include /* halfdelay(), getch() */ +#include /* NULL */ #include /* uint8_t, uint16_t, uint32_t */ #include /* FILE, sprintf(), fseek() */ #include /* strcmp(), strlen(), memcpy() */ @@ -17,9 +18,9 @@ * try_fgetc() */ #include "control.h" /* try_key() */ -#include "map_window.h" /* for map_center() */ +#include "map_window.h" /* map_center() */ #include "misc.h" /* reset_windows() */ -#include "windows.h" /* draw_all_wins() */ +#include "windows.h" /* reset_windows_on_winch(), draw_all_wins() */ #include "world.h" /* world global */ @@ -78,7 +79,7 @@ static void read_inventory(char * read_buf, uint32_t linemax, FILE * file) char * f_name = "read_inventory()"; char * delimiter = "%\n"; free(world.player_inventory); - world.player_inventory = NULL; + world.player_inventory = NULL; /* Avoids illegal strlen() below. */ while (1) { try_fgets(read_buf, linemax + 1, file, f_name); @@ -260,7 +261,7 @@ extern char * io_loop() { if (world.winch) { - reset_windows(); + reset_windows_on_winch(); world.winch = 0; change_in_client++; }