diff options
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) |