mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +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
+2
-2
@@ -1427,7 +1427,7 @@ Gfx *lvRender(Gfx *gdl)
|
||||
g_CutsceneStaticTimer -= g_Vars.diffframe60;
|
||||
|
||||
if (g_CutsceneStaticTimer < 0) {
|
||||
g_CutsceneStaticTimer = random() % TICKS(200) + TICKS(40);
|
||||
g_CutsceneStaticTimer = rngRandom() % TICKS(200) + TICKS(40);
|
||||
g_CutsceneStaticActive = false;
|
||||
}
|
||||
|
||||
@@ -1444,7 +1444,7 @@ Gfx *lvRender(Gfx *gdl)
|
||||
|
||||
// Consider a single frame of static, separate
|
||||
// to the main static above
|
||||
if (random() % 60 == 1) {
|
||||
if (rngRandom() % 60 == 1) {
|
||||
cutscenestatic = 255;
|
||||
sndStart(var80095200, SFX_INFIL_STATIC_SHORT, NULL, -1, -1, -1, -1, -1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user