summaryrefslogtreecommitdiff
path: root/src/code/code_800FD970.c
diff options
context:
space:
mode:
authorRoman971 <32455037+Roman971@users.noreply.github.com>2020-09-19 03:45:39 +0200
committerGitHub <noreply@github.com>2020-09-18 21:45:39 -0400
commit14191307e96cc915fa5a67704eba16421cf4deb2 (patch)
treee730ffbd20e50d1d915543c65ad05ae67211eef6 /src/code/code_800FD970.c
parentb29c268f375013d648fb483445bdc9dd1869f275 (diff)
Decompile Player (#387)
* Setup player decomp * Decompile z_player.c and z_player_lib.c * Decompile remaining z_player.c functions * Various player improvements * Player progress (some non matchings and .data migrated) * Player progress (reposition data and fix some non matchings) * Cleanup, improve and document parts of z_player_lib.c/z_player.c * Fix player renames in z_en_st.c * Fix missing open/close disps in z_player.c * Minor player fixes * Address player comments
Diffstat (limited to 'src/code/code_800FD970.c')
-rw-r--r--src/code/code_800FD970.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/code/code_800FD970.c b/src/code/code_800FD970.c
index f5b61740c..ae2d5916d 100644
--- a/src/code/code_800FD970.c
+++ b/src/code/code_800FD970.c
@@ -10,7 +10,7 @@ static u32 sRandFloat;
/**
* Gets the next integer in the sequence of pseudo-random numbers.
*/
-u32 Math_Rand_Next() {
+u32 Math_Rand_Next(void) {
return sRandInt = (sRandInt * 1664525) + 1013904223;
}
@@ -26,7 +26,7 @@ void Math_Rand_Seed(u32 seed) {
* the next integer and masking it to an IEEE-754 compliant floating-point number
* between 1.0f and 2.0f, returning the result subtract 1.0f.
*/
-f32 Math_Rand_ZeroOne() {
+f32 Math_Rand_ZeroOne(void) {
sRandInt = (sRandInt * 1664525) + 1013904223;
sRandFloat = ((sRandInt >> 9) | 0x3F800000);
return *((f32*)&sRandFloat) - 1.0f;
@@ -36,7 +36,7 @@ f32 Math_Rand_ZeroOne() {
* Returns a pseudo-random floating-point number between -0.5f and 0.5f by the same
* manner in which Math_Rand_ZeroOne generates its result.
*/
-f32 Math_Rand_Centered() {
+f32 Math_Rand_Centered(void) {
sRandInt = (sRandInt * 1664525) + 1013904223;
sRandFloat = ((sRandInt >> 9) | 0x3F800000);
return *((f32*)&sRandFloat) - 1.5f;