mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-17 07:21:43 +00:00
fix: iw4 physpreset uses FLT_MAX as infinite friction
This commit is contained in:
@@ -45,7 +45,7 @@ namespace
|
||||
physPreset.bounce = physPresetInfo.bounce;
|
||||
|
||||
if (physPresetInfo.isFrictionInfinity != 0)
|
||||
physPreset.friction = std::numeric_limits<float>::infinity();
|
||||
physPreset.friction = std::numeric_limits<float>::max();
|
||||
else
|
||||
physPreset.friction = physPresetInfo.friction;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user