X-Git-Url: https://plomlompom.com/repos/index.html?a=blobdiff_plain;f=src%2Fserver%2Fio.c;h=b5a6871a2ad28e8500042ce034fd52d3b2408b80;hb=3dce2a1d9dd93db625c81b09309d9ae0b612dbbb;hp=485313a4bff954f0da115d30ff12061af993f32b;hpb=9281cb7dd7656ff5d19e0747f819051a884649ec;p=plomrogue
diff --git a/src/server/io.c b/src/server/io.c
index 485313a..b5a6871 100644
--- a/src/server/io.c
+++ b/src/server/io.c
@@ -309,7 +309,7 @@ static char * build_visible_map(struct Thing * player)
uint32_t pos_i;
for (pos_i = 0; pos_i < map_size; pos_i++)
{
- if (player->fov_map[pos_i] & VISIBLE)
+ if (player->fov_map[pos_i] == VISIBLE)
{
visible_map[pos_i] = world.map.cells[pos_i];
}
@@ -323,7 +323,7 @@ static char * build_visible_map(struct Thing * player)
for (t = world.things; t != 0; t = t->next)
{
if ( ( player->fov_map[t->pos.y * world.map.length +t->pos.x]
- & VISIBLE)
+ == VISIBLE)
&& ( (0 == i && 0 == t->lifepoints)
|| (1 == i && 0 < t->lifepoints)))
{