diff options
| author | ThePixelGamer <thepixelmaster2354@gmail.com> | 2024-07-26 18:00:57 -0500 |
|---|---|---|
| committer | ThePixelGamer <thepixelmaster2354@gmail.com> | 2024-07-26 18:00:57 -0500 |
| commit | de0fd08acc676caad7dd2f445f221473d7cd4b75 (patch) | |
| tree | 0808bc291b399ccbe9c8fe00b328f94a8da04aff /src/KingSystem/World/worldManager.cpp | |
| parent | 96f611fa5d1c2704d91e5c490662ec8c0a741279 (diff) | |
Update libraries and adjust code to match again
Diffstat (limited to 'src/KingSystem/World/worldManager.cpp')
| -rw-r--r-- | src/KingSystem/World/worldManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/World/worldManager.cpp b/src/KingSystem/World/worldManager.cpp index cd2d9853..d92fa470 100644 --- a/src/KingSystem/World/worldManager.cpp +++ b/src/KingSystem/World/worldManager.cpp @@ -140,7 +140,7 @@ float Manager::calcTempDay(float height) const { float normal_temp = 23.0f; if (isMainField() && worldInfoLoaded()) { - height = sead::Mathf::max(height, 0.0f); + height = sead::Mathf::clampMin(height, 0.0f); int a = -1; float h{}; @@ -182,7 +182,7 @@ float Manager::calcTempNight(float height) const { float normal_temp = 23.0f; if (isMainField() && worldInfoLoaded()) { - height = sead::Mathf::max(height, 0.0f); + height = sead::Mathf::clampMin(height, 0.0f); int a = -1; float h{}; |
