Use macro for randomization with ISO value

This commit is contained in:
GriffinR
2020-02-14 16:12:35 -05:00
committed by huderlem
parent 6eb44dc507
commit faf0ba8662
9 changed files with 13 additions and 18 deletions
+1 -2
View File
@@ -1674,8 +1674,7 @@ static void sub_802BF7C(void)
static int sub_802C098(void)
{
// The number 1103515245 comes from the example implementation of rand and srand
gUnknown_02022CFC->unk24 = gUnknown_02022CFC->unk24 * 1103515245 + 24691;
gUnknown_02022CFC->unk24 = ISO_RANDOMIZE1(gUnknown_02022CFC->unk24);
return gUnknown_02022CFC->unk24 >> 16;
}