From: Christian Heller Date: Sun, 15 Mar 2015 03:14:49 +0000 (+0100) Subject: Fix bug in seeing_thing(). X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/do_day?a=commitdiff_plain;h=291bf4d2137c7d04c3c7d5ce310da1f182384c28;p=plomrogue Fix bug in seeing_thing(). --- diff --git a/roguelike-server b/roguelike-server index 0bb6988..3c4fd89 100755 --- a/roguelike-server +++ b/roguelike-server @@ -1167,11 +1167,13 @@ def get_dir_to_target(t, filter): if t["fovmap"] and "a" == filter: for id in world_db["Things"]: if animate_in_fov(world_db["Things"][id]): - return good_attack_target(world_db["Things"][id]) + if good_attack_target(world_db["Things"][id]): + return True elif t["fovmap"] and "f" == filter: for id in world_db["Things"]: if animate_in_fov(world_db["Things"][id]): - return good_flee_target(world_db["Things"][id]) + if good_flee_target(world_db["Things"][id]): + return True elif t["T_MEMMAP"] and "c" == filter: eat_cost = eat_vs_hunger_threshold(t["T_TYPE"]) for mt in t["T_MEMTHING"]: