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
@@ -559,8 +559,7 @@ static void StartRainSpriteFall(struct Sprite *sprite)
if (sprite->tRandom == 0)
sprite->tRandom = 361;
// Standard RNG sequence.
rand = sprite->tRandom * 1103515245 + 12345;
rand = ISO_RANDOMIZE2(sprite->tRandom);
sprite->tRandom = ((rand & 0x7FFF0000) >> 16) % 600;
numFallingFrames = sRainSpriteFallingDurations[gWeatherPtr->isDownpour][0];