mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- Fixed: Smoothing in to out reached only half strength.
This commit is contained in:
parent
140a650442
commit
aa3c3d6546
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue