From 34dcfbccc6c64a9394b54e6968791da92fcd18f5 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Thu, 19 Sep 2024 04:49:56 +0200 Subject: Add rand.h for non-qrand.c rand functions (#1684) * sync rand.h with related oot PR * fix * yeet comment --- src/code/sys_math.c | 1 + src/code/z_lib.c | 1 + 2 files changed, 2 insertions(+) (limited to 'src/code') diff --git a/src/code/sys_math.c b/src/code/sys_math.c index 81d54d86a..5418f8021 100644 --- a/src/code/sys_math.c +++ b/src/code/sys_math.c @@ -4,6 +4,7 @@ */ #include "global.h" +#include "rand.h" static f32 sFactorialTbl[] = { 1.0f, 1.0f, 2.0f, 6.0f, 24.0f, 120.0f, 720.0f, 5040.0f, 40320.0f, 362880.0f, 3628800.0f, 39916800.0f, 479001600.0f, diff --git a/src/code/z_lib.c b/src/code/z_lib.c index e8d95584a..9f93783b5 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -3,6 +3,7 @@ #include "libc64/qrand.h" +#include "rand.h" #include "segmented_address.h" #include "sfx.h" #include "z64game.h" -- cgit v1.2.3