home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server/AI: Explore map for (long-time) unexplored cells.
[plomrogue]
/
src
/
server
/
thing_actions.c
diff --git
a/src/server/thing_actions.c
b/src/server/thing_actions.c
index 4889e5fea2cc5d221d53d006244dc2986d00a22d..31b70af8ebc5f327cd4c4820d075f9dbf1bcd995 100644
(file)
--- a/
src/server/thing_actions.c
+++ b/
src/server/thing_actions.c
@@
-48,9
+48,9
@@
static void playerbonus_use(uint8_t no_thing, uint8_t wrong_thing);
static void update_log(char * text)
{
static void update_log(char * text)
{
- send_to_outfile("LOG ");
- send_to_outfile(text);
- send_to_outfile("\n");
+ send_to_outfile("LOG "
, 0
);
+ send_to_outfile(text
, 0
);
+ send_to_outfile("\n"
, 1
);
}
}
@@
-94,6
+94,8
@@
static void actor_hits_actor(struct Thing * hitter, struct Thing * hitted)
hitted->fov_map = NULL;
free(hitted->mem_map);
hitted->mem_map = NULL;
hitted->fov_map = NULL;
free(hitted->mem_map);
hitted->mem_map = NULL;
+ free(hitted->mem_depth_map);
+ hitted->mem_depth_map = NULL;
free_things_in_memory(hitted->t_mem);
hitted->t_mem = NULL;
}
free_things_in_memory(hitted->t_mem);
hitted->t_mem = NULL;
}
@@
-183,7
+185,7
@@
static void playerbonus_use(uint8_t no_thing, uint8_t wrong_thing)
update_log("You try to use this object, but fail.");
return;
}
update_log("You try to use this object, but fail.");
return;
}
- update_log("You consume
MAGIC MEAT
.");
+ update_log("You consume
this object
.");
}
}