fix mbf21 A_FindTracer fov cone being twice as big as intended

This commit is contained in:
Xaser Acheron 2022-01-12 23:27:36 -06:00 committed by Christoph Oelckers
parent efbb31fa39
commit 0d8d4a2ad7
1 changed files with 3 additions and 1 deletions

View File

@ -198,7 +198,9 @@ extend class Actor
//
void A_FindTracer(double fov, int dist)
{
if (!tracer) tracer = RoughMonsterSearch(dist, fov: fov);
// note: mbf21 fov is the angle of the entire cone, while
// zdoom fov is defined as 1/2 of the cone, so halve it.
if (!tracer) tracer = RoughMonsterSearch(dist, fov: fov/2);
}
//