From 0ef9ee23b11fba9abf0a0e270d694ba7e5e4e172 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Mar 2016 12:01:10 +0100 Subject: [PATCH] - fixed: When the intensity values of DEarthquake were converted to fixed point, its uses in DEarthquake::Tick were not changed along. --- src/g_shared/a_quake.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_shared/a_quake.cpp b/src/g_shared/a_quake.cpp index e75a084c58..2e1c5fa163 100644 --- a/src/g_shared/a_quake.cpp +++ b/src/g_shared/a_quake.cpp @@ -143,15 +143,15 @@ void DEarthquake::Tick () angle_t an = victim->angle + ANGLE_1*pr_quake(); if (m_IntensityX == m_IntensityY) { // Thrust in a circle - P_ThrustMobj (victim, an, m_IntensityX << (FRACBITS-1)); + P_ThrustMobj (victim, an, m_IntensityX/2); } else { // Thrust in an ellipse an >>= ANGLETOFINESHIFT; // So this is actually completely wrong, but it ought to be good // enough. Otherwise, I'd have to use tangents and square roots. - victim->vel.x += FixedMul(m_IntensityX << (FRACBITS-1), finecosine[an]); - victim->vel.y += FixedMul(m_IntensityY << (FRACBITS-1), finesine[an]); + victim->vel.x += FixedMul(m_IntensityX/2, finecosine[an]); + victim->vel.y += FixedMul(m_IntensityY/2, finesine[an]); } } }