Skip to content

Commit

Permalink
Merge pull request #141 from phylter-qw/seed-overflow-bug-fix
Browse files Browse the repository at this point in the history
replace rng seed generation
  • Loading branch information
ciscon authored Jun 11, 2024
2 parents a0f95a2 + 35a3388 commit 5e3a784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pr2_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 5e3a784

Please sign in to comment.