From 35a338893147817fab1bca3782bb5172c5dfb3d9 Mon Sep 17 00:00:00 2001 From: phylter-qw Date: Wed, 5 Jun 2024 12:54:48 -0700 Subject: [PATCH] replace rng seed generation --- src/pr2_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pr2_exec.c b/src/pr2_exec.c index fa0ea14c..73bfe0c7 100644 --- a/src/pr2_exec.c +++ b/src/pr2_exec.c @@ -563,7 +563,7 @@ void PR2_InitProg(void) PR2_FS_Restart(); gamedata.APIversion = 0; - gamedata_ptr = (intptr_t) VM_Call(sv_vm, 2, GAME_INIT, (int)(sv.time * 1000), (int)(Sys_DoubleTime() * 100000), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); + gamedata_ptr = (intptr_t) VM_Call(sv_vm, 2, GAME_INIT, (int)(sv.time * 1000), (int)time(NULL), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); if (!gamedata_ptr) { SV_Error("PR2_InitProg: gamedata == NULL"); }