From a9ef8cc6374cff47cb1b99a31399e852fbf735ea Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Thu, 24 Mar 2016 12:49:09 -0500 Subject: [PATCH] Fixed A_QuakeEx falloff not working properly. --- src/g_shared/a_quake.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/g_shared/a_quake.cpp b/src/g_shared/a_quake.cpp index c93c574a3..1a9211b4c 100644 --- a/src/g_shared/a_quake.cpp +++ b/src/g_shared/a_quake.cpp @@ -289,9 +289,8 @@ fixed_t DEarthquake::GetFalloff(fixed_t dist) const else if ((dist > m_Falloff) && (dist < m_TremorRadius)) { //Player inside the radius, and outside the min distance for falloff. fixed_t tremorsize = m_TremorRadius - m_Falloff; - fixed_t tremordist = dist - m_Falloff; assert(tremorsize > 0); - return (FRACUNIT - FixedMul(FRACUNIT,tremordist) / tremorsize); + return (FRACUNIT - FixedDiv((dist - m_Falloff), tremorsize)); } else { //Shouldn't happen.