if (seeing_thing(t_eye, filter))
{
uint32_t map_size = world.map.length * world.map.length;
- uint16_t * score_map = try_malloc(map_size * sizeof(uint16_t), __func__);
+ uint16_t * score_map = try_malloc(map_size * sizeof(uint16_t),__func__);
init_score_map(filter, score_map, map_size, t_eye);
dijkstra_map(score_map, UINT16_MAX-1);
uint16_t neighbors[N_DIRS];
{
for (t = world.things; t != 0; t = t->next)
{
- if ('v'==player->fov_map[t->pos.y*world.map.length+t->pos.x])
+ if ('v' == player->fov_map[t->pos.y*world.map.length+t->pos.x])
{
struct ThingType * tt = get_thing_type(t->type);
if ( (0 == i && !t->lifepoints && !tt->consumable)
{
for (x = 0; x < world.map.length; x++)
{
- try_fputc(player->mem_map[y * world.map.length + x], file, __func__);
+ try_fputc(player->mem_map[y*world.map.length+x], file, __func__);
}
try_fputc('\n', file, __func__);
}