mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-13 04:24:39 +00:00
- fix the HitScan call in CanMove.
This was picking an unexpected overload because the second parameter was a float but with an integer-range value.
This commit is contained in:
parent
180d020620
commit
138ba53ace
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ bool CanMove(DBloodActor* actor, DBloodActor* target, int nAngle_, int nRange)
|
|||
GetActorExtents(actor, &top, &bottom);
|
||||
DVector3 pos = actor->spr.pos;
|
||||
DVector2 nAngVect = nAngle.ToVector();
|
||||
HitScan_(actor, pos.Z * zworldtoint, nAngVect.X * (1 << 14), nAngVect.Y * (1 << 14), 0, CLIPMASK0, nRange);
|
||||
HitScan(actor, pos.Z, DVector3(nAngVect, 0) * 1024, CLIPMASK0, nRange);
|
||||
double nDist = (actor->spr.pos.XY() - gHitInfo.hitpos.XY()).Length();
|
||||
if (nDist - (actor->fClipdist()) < nRange)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue