Fixed sight check after blockmap refactoring

https://mantis.zdoom.org/view.php?id=446
This commit is contained in:
alexey.lysiuk 2017-03-18 12:44:26 +02:00
parent f3ae144525
commit 4557f751c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}