diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-02-14 16:12:35 -0500 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2020-02-25 12:54:08 -0600 |
commit | faf0ba8662ecd54b4160920097074aad3c2dc8cb (patch) | |
tree | c494ba3ef5757776bdcf7f66698d764c8f5ac43a /src/water.c | |
parent | 6eb44dc50714f184cea4453704636370263e7efc (diff) |
Use macro for randomization with ISO value
Diffstat (limited to 'src/water.c')
-rw-r--r-- | src/water.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/water.c b/src/water.c index 760900702..1a66835fb 100644 --- a/src/water.c +++ b/src/water.c @@ -1762,7 +1762,7 @@ void sub_810871C(struct Task *task, u8 taskId) } task->data[11]++; task->data[8] = (task->data[8] + 39) & 0xFF; - task->data[7] = ((task->data[7] * 1103515245 + 12345) % task->data[5]) + task->data[4]; + task->data[7] = (ISO_RANDOMIZE2(task->data[7]) % task->data[5]) + task->data[4]; } void sub_81087C0(struct Sprite *sprite) |