mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
port: rename random to rngRandom to avoid conflicts with libc
This commit is contained in:
1 parent
d747588323
commit
06dcbcc1b1
55 files changed
+459
-459
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ void botcmdTickDistMode(struct chrdata *chr)
|
||||
if (!insight) {
|
||||
newmode = BOTDISTMODE_ADVANCE;
|
||||
aibot->distoverrideprop = targetprop;
|
||||
aibot->distoverridetimer60 = TICKS(20) + (random() % TICKS(120));
|
||||
aibot->distoverridetimer60 = TICKS(20) + (rngRandom() % TICKS(120));
|
||||
} else if (aibot->distoverrideprop) {
|
||||
if (g_Vars.lvupdate60 < aibot->distoverridetimer60) {
|
||||
aibot->distoverridetimer60 -= g_Vars.lvupdate60;
|
||||
|
||||
Reference in new issue
Block a user