mirror of
https://github.com/DrBeef/Raze.git
synced 2025-03-06 09:21:04 +00:00
- one more
This commit is contained in:
parent
0ee39bfad9
commit
5df5520754
1 changed files with 1 additions and 1 deletions
|
@ -12559,7 +12559,7 @@ void WeaponHitscanShootFeet(DSWActor* actor, DSWActor* hitActor, int *zvect)
|
||||||
ang = NORM_ANGLE(getangle(hitActor->int_pos().X - actor->int_pos().X, hitActor->int_pos().Y - actor->int_pos().Y));
|
ang = NORM_ANGLE(getangle(hitActor->int_pos().X - actor->int_pos().X, hitActor->int_pos().Y - actor->int_pos().Y));
|
||||||
|
|
||||||
// find the distance to the target
|
// find the distance to the target
|
||||||
dist = ksqrt(SQ(actor->int_pos().X - hitActor->int_pos().X) + SQ(actor->int_pos().Y - hitActor->int_pos().Y));
|
dist = int((actor->spr.pos.XY() - hitActor->spr.pos.XY()).Length() * worldtoint);
|
||||||
|
|
||||||
if (dist != 0)
|
if (dist != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue