Fix incorrect start trace for Actor::DontFaceWall()

This fixes AI not turning from wall
This commit is contained in:
smallmodel 2024-11-17 16:36:45 +01:00
parent 80ddba1013
commit b0b82f0252
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -11606,7 +11606,7 @@ void Actor::DontFaceWall(void)
start.y -= origin.y;
fEyeRadius = VectorLength2D(start);
start.x = origin.x + fEyeRadius * fCosAngle;
start.y = origin.x + fEyeRadius * fSinAngle;
start.y = origin.y + fEyeRadius * fSinAngle;
end.x = start.x + fCosAngle * 64;
end.y = start.y + fSinAngle * 64;
end.z = start.z;