X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Fserver%2Fai.c;h=0fd43ad2abffc6dc17189d699de3c0904b4bb551;hb=3cb6ed6453b22eba62f7c9186790813b0abebeb9;hp=91a6c8618c918e7eaf925085b1c288f2f5f638da;hpb=3dce2a1d9dd93db625c81b09309d9ae0b612dbbb;p=plomrogue diff --git a/src/server/ai.c b/src/server/ai.c index 91a6c86..0fd43ad 100644 --- a/src/server/ai.c +++ b/src/server/ai.c @@ -5,7 +5,6 @@ #include /* uint8_t, uint16_t, uint32_t, UINT16_MAX */ #include /* free() */ #include "../common/try_malloc.h" /* try_malloc() */ -#include "field_of_view.h" /* HIDDEN */ #include "hardcoded_strings.h" /* s */ #include "thing_actions.h" /* get_thing_action_id_by_name() */ #include "things.h" /* struct Thing */ @@ -140,7 +139,7 @@ static char get_dir_to_nearest_enemy(struct Thing * t_origin) for (; t != NULL; t = t->next) { if ( !t->lifepoints || t == t_origin - || HIDDEN == t_origin->fov_map[t->pos.y*world.map.length+t->pos.x]) + || 'H' == t_origin->fov_map[t->pos.y * world.map.length + t->pos.x]) { continue; }