mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-03 02:30:53 +00:00
- fixed damage calculation for OLDRADIUSDMG case of P_RadiusAttack.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@580 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
fd52457d5a
commit
4799da28a3
1 changed files with 1 additions and 1 deletions
|
@ -4328,7 +4328,7 @@ void P_RadiusAttack (AActor *bombspot, AActor *bombsource, int bombdamage, int b
|
|||
if (P_CheckSight (thing, bombspot, 1))
|
||||
{ // OK to damage; target is in direct path
|
||||
dist = clamp<int>(dist - fulldamagedistance, 0, dist);
|
||||
int damage = Scale (bombdamage, bombdistance-dist, bombdistance-fulldamagedistance);
|
||||
int damage = Scale (bombdamage, bombdistance-dist, bombdistance);
|
||||
damage = (int)((float)damage * splashfactor);
|
||||
|
||||
damage = Scale(damage, thing->GetClass()->Meta.GetMetaFixed(AMETA_RDFactor, FRACUNIT), FRACUNIT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue