forked from Ports/perfect_dark
Improve aiRandom
This commit is contained in:
1 parent
8cfba0597c
commit
5fb064b42f
1 file changed
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user