Decomp ActorRupee

This commit is contained in:
Aetias
2024-10-20 16:51:14 +02:00
parent c9f8ce4b16
commit 52e0ac185a
9 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -314,7 +314,7 @@ public:
// Rupees
s32 GetMaxRupees() const;
void GiveRupees(s16 amount, bool param2);
void GiveRupees(s32 amount, bool param2);
// Potion
void SetPotion(u32 index, Potion potion);
+2
View File
@@ -9,7 +9,9 @@ typedef s32 q20;
typedef s16 q4;
#define INT_TO_Q20(n) ((s32) ((n) << 12))
#define FLOAT_TO_Q21(n) ((s32) (((n) * 8192 + 1) / 4))
#define FLOAT_TO_Q20(n) ((s32) (((n) * 8192 + 1) / 2))
#define FLOAT_TO_Q19(n) ((s32) (((n) * 8192 + 1)))
#define ROUND_Q20(n) (((s32) (n) + 0x800) >> 12)
#define MUL_Q20(a, b) (q20)((((s64) (a)) * ((s64) (b)) + 0x800) >> 12)