From 5ab4159e76b034066ad123454323b97812f95944 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 25 Oct 2009 23:12:00 +0000 Subject: [PATCH] - fixed damage calculation for OLDRADIUSDMG case of P_RadiusAttack. SVN r1937 (trunk) --- src/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index f225ef0e6..8dcbe70fa 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -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(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);