0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom.git synced 2025-04-21 02:11:06 +00:00

- let a sight check that gets lost return failure.

This way these cannnot unwantedly wake up monsters.
This commit is contained in:
Christoph Oelckers 2019-12-28 16:32:50 +01:00
parent 55975a2ae2
commit 695ab81bca

View file

@ -773,8 +773,7 @@ bool SightCheck::P_SightPathTraverse ()
case 0: // neither xintercept nor yintercept match!
sightcounts[5]++;
// Continuing won't make things any better, so we might as well stop right here
count = 1000;
break;
return false;
case 1: // xintercept matches
xintercept += xstep;