Improve aiRandom

This commit is contained in:
Ryan Dwyer 2019-10-08 18:56:27 +10:00
parent 8cfba0597c
commit 5fb064b42f
1 changed files with 1 additions and 2 deletions

View File

@ -1352,8 +1352,7 @@ bool aiRunToChr(void)
*/
bool aiRandom(void)
{
u32 value = random();
g_Vars.chrdata->random = value & 0xff;
g_Vars.chrdata->random = random() & 0xff;
g_Vars.aioffset += 2;
return false;