summaryrefslogtreecommitdiff
path: root/src/code_803C1B4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/code_803C1B4.c')
-rw-r--r--src/code_803C1B4.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/code_803C1B4.c b/src/code_803C1B4.c
new file mode 100644
index 0000000..5f37e61
--- /dev/null
+++ b/src/code_803C1B4.c
@@ -0,0 +1,17 @@
+#include "global.h"
+
+extern s32 sub_80908D8(u32);
+
+s32 sub_803C1B4(s32 r0, u8 r1)
+{
+ s32 temp;
+ temp = sub_80908D8(r0);
+ if(r1 == 2)
+ {
+ temp += 2;
+ }
+ if(temp > 0xF)
+ temp = 0xF;
+ return temp;
+}
+