home · contact · privacy
Removed redundant calls for zeroing of memory, especially where replaceable with...
[plomrogue] / src / client / io.c
index 2f7d18ad25f5c6c6fc43db5657700b750cd0b23e..095577d32e1d84fa0d68a89eb31d41a6ac5a76e1 100644 (file)
@@ -17,8 +17,9 @@
                                   * try_fgetc()
                                   */
 #include "control.h" /* try_key() */
-#include "map_window.h" /* for map_center() */
-#include "windows.h" /* draw_all_wins() */
+#include "map_window.h" /* map_center() */
+#include "misc.h" /* reset_windows() */
+#include "windows.h" /* reset_windows_on_winch(), draw_all_wins() */
 #include "world.h" /* world global */
 
 
@@ -257,6 +258,12 @@ extern char * io_loop()
     uint8_t change_in_client = 0;
     while (1)
     {
+        if (world.winch)
+        {
+            reset_windows_on_winch();
+            world.winch = 0;
+            change_in_client++;
+        }
         if (read_world() || change_in_client)
         {
             draw_all_wins();