Document math functions

This commit is contained in:
Aetias
2025-01-18 15:50:03 +01:00
parent 311b9243e1
commit fe4c283ba2
35 changed files with 374 additions and 215 deletions
+1 -1
View File
@@ -298,7 +298,7 @@ THUMB u16 ItemManager::GetUnk_09e(u32 index) const {
}
THUMB s32 ItemManager::GetUnk_09e_Divided(u32 index) const {
q20 quotient = Divide(INT_TO_Q20(mUnk_09e[index]), FLOAT_TO_Q20(2.54));
q20 quotient = CoDivide64By32(INT_TO_Q20(mUnk_09e[index]), FLOAT_TO_Q20(2.54));
s32 result = ROUND_Q20(quotient);
if (result < 1) result = 1;
return result;