diff --git a/src/p_sight.cpp b/src/p_sight.cpp index c7e1dea75..04cb9c9ea 100644 --- a/src/p_sight.cpp +++ b/src/p_sight.cpp @@ -739,7 +739,7 @@ bool SightCheck::P_SightPathTraverse () { // end traversing when reaching the end of the blockmap // an early out is not possible because with portals a trace can easily land outside the map's bounds. - if (level.blockmap.isValidBlock(mapx, mapy)) + if (!level.blockmap.isValidBlock(mapx, mapy)) { break; }