mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix incorrect start trace for Actor::DontFaceWall()
This fixes AI not turning from wall
This commit is contained in:
parent
80ddba1013
commit
b0b82f0252
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue