diff options
| author | ThePixelGamer <thepixelmaster2354@gmail.com> | 2021-10-06 18:02:53 -0500 |
|---|---|---|
| committer | ThePixelGamer <thepixelmaster2354@gmail.com> | 2021-10-10 05:21:18 -0500 |
| commit | 20df9e7c7d9715173b2bdfd5697526b2f49b8dbe (patch) | |
| tree | e0c5d2f9b2419aceb870721f1a22e52ec9614f5c /src/KingSystem/GameData/gdtTriggerParam.cpp | |
| parent | a82333ef9060f622e52a25ee0d815d33b0e91d91 (diff) | |
Update misc files to match sead math changes
Diffstat (limited to 'src/KingSystem/GameData/gdtTriggerParam.cpp')
| -rw-r--r-- | src/KingSystem/GameData/gdtTriggerParam.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/GameData/gdtTriggerParam.cpp b/src/KingSystem/GameData/gdtTriggerParam.cpp index ff8089cc..82ab81dd 100644 --- a/src/KingSystem/GameData/gdtTriggerParam.cpp +++ b/src/KingSystem/GameData/gdtTriggerParam.cpp @@ -1822,8 +1822,8 @@ bool TriggerParam::shouldSkipRevivingShopItem(bool* is_shop_item, u32 flag_hash, if (!act::ActorSystem::instance()->getAutoPlacementActorPos(dealer, &pos)) return false; - col = sead::clamp((int(pos.x) + 5000) / 1000, 0, 9); - row = sead::clamp((int(pos.z) + 4000) / 1000, 0, 7); + col = sead::Mathi::clamp((int(pos.x) + 5000) / 1000, 0, 9); + row = sead::Mathi::clamp((int(pos.z) + 4000) / 1000, 0, 7); } else { num = areas.getSize(); if (areas.tryGetIterByIndex(&iter, 0)) { |
