mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 10:32:27 +00:00
- fixed offset in shrinker
This commit is contained in:
parent
1597cf5400
commit
de5e779c50
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ class DukeShrinker : DukeActor
|
|||
DukePlayer j;
|
||||
[j, x] = shooter.findplayer();
|
||||
double dist = (j.actor.pos.XY - shooter.pos.XY).Length();
|
||||
zvel = ((j.actor.viewzoffset - pos.Z) * 32) / dist;
|
||||
zvel = ((j.actor.pos.Z + j.actor.viewzoffset - pos.Z) * 32) / dist;
|
||||
}
|
||||
else zvel = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue