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/py: Add skeleton for turn_over().
[plomrogue]
/
src
/
server
/
things.c
diff --git
a/src/server/things.c
b/src/server/things.c
index d4db1938836fac6f6bd31d6e535f5343ff31bc00..f114ea4abbb85933acde8a96df287d55808c8419 100644
(file)
--- a/
src/server/things.c
+++ b/
src/server/things.c
@@
-210,6
+210,7
@@
extern void free_things(struct Thing * t)
free_things(t->next);
free(t->fov_map);
free(t->mem_map);
free_things(t->next);
free(t->fov_map);
free(t->mem_map);
+ free(t->mem_depth_map);
free_things_in_memory(t->t_mem);
free(t);
if (t == world.things) /* So add_things()' NULL-delimited thing */
free_things_in_memory(t->t_mem);
free(t);
if (t == world.things) /* So add_things()' NULL-delimited thing */
@@
-308,7
+309,7
@@
extern void try_thing_proliferation(struct Thing * t)
{
struct yx_uint8 candidates[6];
uint8_t n_candidates = 0;
{
struct yx_uint8 candidates[6];
uint8_t n_candidates = 0;
- char dirs[7] = "
d
xswed";
+ char dirs[7] = "
c
xswed";
struct yx_uint8 test = t->pos;
uint8_t i;
for (i = 0; i < strlen(dirs); i++)
struct yx_uint8 test = t->pos;
uint8_t i;
for (i = 0; i < strlen(dirs); i++)