home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dabae63
)
Client: In "Standing on", mark emptiness against lack of server input.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Nov 2014 01:26:01 +0000
(
02:26
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 21 Nov 2014 01:26:01 +0000
(
02:26
+0100)
src/client/io.c
patch
|
blob
|
history
diff --git
a/src/client/io.c
b/src/client/io.c
index 995ffb56578ff02c3a61c2ab392f47d354ada16b..a46f91ff65c9cd00876cd392454ae2e922c1e1a4 100644
(file)
--- 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);