- if "a" != filter:
- for id in world_db["Things"]:
- if animate_in_fov(world_db["Things"][id]):
- if "f" == filter:
- pos = world_db["Things"][id]["T_POSY"] \
- * world_db["MAP_LENGTH"] \
- + world_db["Things"][id]["T_POSX"]
- if 0 == get_map_score(pos):
- continue
- set_map_score_at_thingpos(id, 65535)
+ if "f" == filter:
+ [set_map_score_at_thingpos(id, 65535)
+ for id in world_db["Things"]
+ if animate_in_fov(world_db["Things"][id], maplength)
+ if get_map_score(world_db["Things"][id]["T_POSY"] * maplength
+ + world_db["Things"][id]["T_POSX"])]
+ elif "a" != filter:
+ [set_map_score_at_thingpos(id, 65535)
+ for id in world_db["Things"]
+ if animate_in_fov(world_db["Things"][id], maplength)]