From: Christian Heller Date: Fri, 21 Nov 2014 01:26:01 +0000 (+0100) Subject: Client: In "Standing on", mark emptiness against lack of server input. X-Git-Tag: tce~577 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_data.id_%7D%7D?a=commitdiff_plain;h=e45e336049b205cdf51d64e610cd75974e5f1f7b;p=plomrogue Client: In "Standing on", mark emptiness against lack of server input. --- diff --git a/src/client/io.c b/src/client/io.c index 995ffb5..a46f91f 100644 --- a/src/client/io.c +++ b/src/client/io.c @@ -275,6 +275,10 @@ static uint8_t read_queue() else if (!strcmp(msg, "THINGS_BELOW_PLAYER END")) { things_below_player_parsing = 0; + if (!world.things_below_player) + { + nl_append_string("(nothing)", &world.things_below_player); + } } else if (things_below_player_parsing) { @@ -294,6 +298,8 @@ static uint8_t read_queue() } else if (!strcmp(msg, "WORLD_UPDATED")) { + free(world.things_below_player); + world.things_below_player = NULL; send("STACK"); } free(msg);