Misc Small Retail Files OK (#1687)

* shrink_window, z_lib, z_lights OK

* sys_cfb.c OK

* cleanup
This commit is contained in:
engineer124
2024-02-02 03:15:53 +11:00
committed by GitHub
parent 7c5ab8fcec
commit e33d76568c
4 changed files with 40 additions and 35 deletions
+3 -1
View File
@@ -407,8 +407,10 @@ void IChain_Apply_Vec3s(u8* ptr, InitChainEntry* ichain) {
* instead, with a minimum step of minStep. Returns remaining distance to target.
*/
f32 Math_SmoothStepToF(f32* pValue, f32 target, f32 fraction, f32 step, f32 minStep) {
f32 stepSize;
if (*pValue != target) {
f32 stepSize = (target - *pValue) * fraction;
stepSize = (target - *pValue) * fraction;
if ((stepSize >= minStep) || (stepSize <= -minStep)) {
if (stepSize > step) {