home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Optimized WinConf / WinConfDB structure, removed redundant .draw.
[plomrogue]
/
src
/
client
/
io.c
diff --git
a/src/client/io.c
b/src/client/io.c
index 2f7d18ad25f5c6c6fc43db5657700b750cd0b23e..998691cc9637e1b4be8236b79b1fe57d096d4339 100644
(file)
--- a/
src/client/io.c
+++ b/
src/client/io.c
@@
-18,6
+18,7
@@
*/
#include "control.h" /* try_key() */
#include "map_window.h" /* for map_center() */
*/
#include "control.h" /* try_key() */
#include "map_window.h" /* for map_center() */
+#include "misc.h" /* reset_windows() */
#include "windows.h" /* draw_all_wins() */
#include "world.h" /* world global */
#include "windows.h" /* draw_all_wins() */
#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();
+ world.winch = 0;
+ change_in_client++;
+ }
if (read_world() || change_in_client)
{
draw_all_wins();
if (read_world() || change_in_client)
{
draw_all_wins();