From 4557f751c837c227b9f3ed0b07fb0b46bc10996e Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 18 Mar 2017 12:44:26 +0200 Subject: [PATCH] Fixed sight check after blockmap refactoring https://mantis.zdoom.org/view.php?id=446 --- src/p_sight.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }