From 3f17d64f90c0795b5d70ecdbe72fdae88a3b32ab Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 Sep 2016 09:42:35 +0200 Subject: [PATCH] - fixed pitch comparison in visibility checking. --- src/p_mobj.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 8d6d75237..4369ae9cc 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -1052,7 +1052,7 @@ bool AActor::IsInsideVisibleAngles() const angleend = temp; } - if (pitchstart > angleend) + if (pitchstart > pitchend) { DAngle temp = pitchstart; pitchstart = pitchend;