home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged Win and WinConf structs, windows.h and wincontrol.h. Also lots of refactoring...
[plomrogue]
/
src
/
client
/
io.c
diff --git
a/src/client/io.c
b/src/client/io.c
index 2f7d18ad25f5c6c6fc43db5657700b750cd0b23e..095577d32e1d84fa0d68a89eb31d41a6ac5a76e1 100644
(file)
--- a/
src/client/io.c
+++ b/
src/client/io.c
@@
-17,8
+17,9
@@
* try_fgetc()
*/
#include "control.h" /* try_key() */
* 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 */
#include "world.h" /* world global */
@@
-257,6
+258,12
@@
extern char * io_loop()
uint8_t change_in_client = 0;
while (1)
{
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();
if (read_world() || change_in_client)
{
draw_all_wins();