- Fixed: Smoothing in to out reached only half strength.

This commit is contained in:
MajorCooke 2015-02-20 10:55:06 -06:00
parent 140a650442
commit aa3c3d6546

View file

@ -792,7 +792,7 @@ static fixed_t QuakePower(double factor, int intensity, quakeInfo quake)
if (quake.preferMaximum) if (quake.preferMaximum)
result = FLOAT2FIXED((factor * ss) * MAX((scaleDown / scaleDownStart), (scaleDownStart - scaleDown) / scaleDownStart)); result = FLOAT2FIXED((factor * ss) * MAX((scaleDown / scaleDownStart), (scaleDownStart - scaleDown) / scaleDownStart));
else else
result = FLOAT2FIXED((factor * ss) * MIN((scaleDown / scaleDownStart), (scaleDownStart - scaleDown) / scaleDownStart)); result = FLOAT2FIXED((factor * ss) * MIN(((scaleDown*2) / scaleDownStart), ((scaleDownStart - scaleDown)*2) / scaleDownStart));
} }
else if (quake.isScalingDown) else if (quake.isScalingDown)
result = FLOAT2FIXED((factor * ss) * (scaleDown / scaleDownStart)); result = FLOAT2FIXED((factor * ss) * (scaleDown / scaleDownStart));