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: Refactor writing of field of view to Thing struct.
[plomrogue]
/
src
/
server
/
ai.c
diff --git
a/src/server/ai.c
b/src/server/ai.c
index 4789c41cf1d797cbc360761469c41cb2da7a1a30..31bc55ce1e5ff1b61061270963edc8c6abd6d78a 100644
(file)
--- a/
src/server/ai.c
+++ b/
src/server/ai.c
@@
-133,7
+133,6
@@
static char get_dir_to_nearest_enemy(struct Thing * t_origin)
for (i = 0; i < map_size; i++)
{
score_map[i] = t_origin->fov_map[i] & VISIBLE ? max_score : UINT16_MAX;
-
}
struct Thing * t = world.things;
for (; t != NULL; t = t->next)