X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=src%2Fclient%2Fio.c;h=233a60c78043bd8e6c7de7e54c0e98eed511bcdf;hb=4438d108ea0242ed0a17207ae4cb1f4b30ce2f5b;hp=35e42e77c2340f3088ce9ea374c40d97a16962a0;hpb=e2788e0bb81b5b9bfe7d3662a3c55883100558a1;p=plomrogue diff --git a/src/client/io.c b/src/client/io.c index 35e42e7..233a60c 100644 --- a/src/client/io.c +++ b/src/client/io.c @@ -80,8 +80,8 @@ static uint8_t read_worldstate(); */ static void test_and_poll_server(); -/* Read server out file for messages, act on them (i.e. derive log messages). */ -static uint8_t read_outfile(); +/* Read queue, act on them (as of right now only: derive log messages). */ +static uint8_t read_queue(); @@ -230,7 +230,7 @@ static void test_and_poll_server() -static uint8_t read_outfile() +static uint8_t read_queue() { uint8_t ret = 0; char * msg; @@ -288,7 +288,7 @@ extern char * io_loop() world.winch = 0; change_in_client++; } - if (change_in_client || read_worldstate() || read_outfile()) + if (change_in_client || read_worldstate() || read_queue()) { if (world.turn != last_focused_turn && world.focus_each_turn) {