mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
Fix missing 'victim' replace in ALoreShot code.
This commit is contained in:
parent
92fbe47ade
commit
04c6c5ca55
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ int ALoreShot::DoSpecialDamage (AActor *victim, int damage, FName damagetype)
|
|||
thrust.Z = float(target->z - victim->z);
|
||||
|
||||
thrust.MakeUnit();
|
||||
thrust *= float((255*50*FRACUNIT) / (victim->Mass ? target->Mass : 1));
|
||||
thrust *= float((255*50*FRACUNIT) / (victim->Mass ? victim->Mass : 1));
|
||||
|
||||
victim->velx += fixed_t(thrust.X);
|
||||
victim->vely += fixed_t(thrust.Y);
|
||||
|
|
Loading…
Reference in a new issue