summaryrefslogtreecommitdiff
path: root/src/code_803C1B4.c
blob: 5f37e61533f413e56c0e095de55ee0c4ad49bcdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}